cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
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 Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now