cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Azure devops pipeline throwing databricks provider bug when trying to read the metastore

manoj_2355ca
New Contributor III

Hi I created Terraform script to add the existing workspace to exisitng unity catlaog by reading the metastore id . When i created pipleina nd tried to use it . This is failing with below error.

Planning failed. Terraform encountered an error while generating this plan.
 
 
Error: cannot read data metastore: unexpected error handling request: unexpected end of JSON input. This is likely a bug in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-go/issues. Request log:
```
GET /api/2.0/accounts/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/metastores/xxxxxxxxxxxxxxxxxxxxxxxxx
 
 
 
 
> * Host:
> * Accept: application/json
> * Authorization: REDACTED
> * User-Agent: databricks-tf-provider/1.33.0 databricks-sdk-go/0.28.1 go/1.20.12 os/linux terraform/1.6.5 data/yes resource/metastore auth/azure-client-secret cicd/azure-devops
> * X-Databricks-Azure-Sp-Management-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
< HTTP/2.0 403 Forbidden (Error: unexpected end of JSON input)
< * Date: Fri, 12 Jan 2024 06:48:50 GMT
< * Server: databricks
< * Vary: Accept-Encoding
```
 
with data.databricks_metastore.int_meta,
on metastore_data.tf line 19, in data "databricks_metastore" "int_meta":
19: data "databricks_metastore" "int_meta" {
 
 
Error: unexpected error handling request: unexpected end of JSON input. This is likely a bug in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-go/issues. Request log:
```
GET /api/2.0/accounts/xxxxxxxxxxxxxxxxx/scim/v2/Groups?filter=displayName eq 'METASTORE_ADMINS'
> * Host:
> * Accept: application/json
> * Authorization: REDACTED
> * Content-Type: application/scim+json; charset=utf-8
> * User-Agent: databricks-tf-provider/1.33.0 databricks-sdk-go/0.28.1 go/1.20.12 os/linux terraform/1.6.5 data/yes resource/group auth/azure-client-secret cicd/azure-devops
> * X-Databricks-Azure-Sp-Management-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
< HTTP/2.0 403 Forbidden (Error: unexpected end of JSON input)
< * Date: Fri, 12 Jan 2024 06:48:50 GMT
< * Server: databricks
< * Vary: Accept-Encoding
```
 
with data.databricks_group.admins,
on metastore_data.tf line 24, in data "databricks_group" "admins":
24: data "databricks_group" "admins" {
 
Can anyone please help me on this bug
1 REPLY 1

manoj_2355ca
New Contributor III

Please can anyone provide help me on this ?

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!