databricks-sdk-go icon indicating copy to clipboard operation
databricks-sdk-go copied to clipboard

[ISSUE] Terraform Plan raise SDK error.

Open davidchungh opened this issue 9 months ago • 2 comments

Description When I ran Terraform Plan, I got following SDK error.

Reproduction Terraform Plan

Expected behavior It should list out come of Terraform Plan.

Is it a regression? I don't know.

Debug Logs │ Error: cannot read entitlements: unexpected error handling request: invalid character 'h' looking for beginning of value. 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/preview/scim/v2/Groups/310496064152992?attributes=entitlements │ > * Host: │ > * Accept: application/json │ > * Authorization: REDACTED │ > * Content-Type: application/scim+json; charset=utf-8 │ > * Traceparent: 00-25b69274a9ffaa66728afadabe2a6ea2-dda39a09f0609c08-01 │ > * User-Agent: databricks-tf-provider/1.51.0 databricks-sdk-go/0.45.0 go/1.22.6 os/windows terraform/1.9.8 resource/entitlements auth/oauth-m2m │ < HTTP/2.0 403 Forbidden │ < * Content-Type: application/json │ < * Date: Fri, 14 Feb 2025 20:50:54 GMT │ < * Server: databricks │ < * Strict-Transport-Security: max-age=31536000; includeSubDomains; preload │ < * Vary: Accept-Encoding │ < * X-Content-Type-Options: nosniff │ < * X-Databricks-Org-Id: 4083010505002411 │ < * X-Databricks-Reason-Phrase: https://adb-4083010505002411.11.azuredatabricks.net/api/2.0/preview/scim/v2/Groups/310496064152992?attributes=entitlements is only accessible by admins. │ < * X-Request-Id: 49b59cd0-64f9-4f8d-9400-2e65071cc03c │ < https://adb-4083010505002411.11.azuredatabricks.net/api/2.0/preview/scim/v2/Groups/310496064152992?attributes=entitlements is only accessible by admins. │ │ │ with module.workspace_groups["AAD-DNA_AZ_Admin"].databricks_entitlements.this, │ on ..\modules\databricks-groups\main.tf line 14, in resource "databricks_entitlements" "this": │ 14: resource "databricks_entitlements" "this" { │ ╵ ╷ │ Error: cannot read entitlements: unexpected error handling request: invalid character 'h' looking for beginning of value. 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/preview/scim/v2/Groups/1063002243406840?attributes=entitlements │ > * Host: │ > * Accept: application/json │ > * Authorization: REDACTED │ > * Content-Type: application/scim+json; charset=utf-8 │ > * Traceparent: 00-fd8879afa2aedd047826ec1aa89feefe-33d867543700c8b0-01 │ > * User-Agent: databricks-tf-provider/1.51.0 databricks-sdk-go/0.45.0 go/1.22.6 os/windows terraform/1.9.8 resource/entitlements auth/oauth-m2m │ < HTTP/2.0 403 Forbidden │ < * Content-Type: application/json │ < * Date: Fri, 14 Feb 2025 20:50:54 GMT │ < * Server: databricks │ < * Strict-Transport-Security: max-age=31536000; includeSubDomains; preload │ < * Vary: Accept-Encoding │ < * X-Content-Type-Options: nosniff │ < * X-Databricks-Org-Id: 4083010505002411 │ < * X-Databricks-Reason-Phrase: https://adb-4083010505002411.11.azuredatabricks.net/api/2.0/preview/scim/v2/Groups/1063002243406840?attributes=entitlements is only accessible by admins. │ < * X-Request-Id: 19487245-aa62-4c0e-aced-14674e297c8f │ < https://adb-4083010505002411.11.azuredatabricks.net/api/2.0/preview/scim/v2/Groups/1063002243406840?attributes=entitlements is only accessible by admins. │ │ │ with module.workspace_groups["AAD-DNA_AZ_Developers"].databricks_entitlements.this, │ on ..\modules\databricks-groups\main.tf line 14, in resource "databricks_entitlements" "this": │ 14: resource "databricks_entitlements" "this" {

Other Information

  • OS: [e.g. macOS]
  • Version: [e.g. 0.1.0]

Additional context Add any other context about the problem here.

davidchungh avatar Feb 14 '25 21:02 davidchungh

Hi @davidchungh, thanks for creating the issue, is this happening consistently?

tanmay-db avatar Mar 03 '25 13:03 tanmay-db

Can you also share the repro steps for this issue?

tanmay-db avatar Mar 03 '25 13:03 tanmay-db