You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When using the terraform databricks provider (version 1.39.0) we have quite regularly but not always this error popping up when planning or applying code. We have upgraded our databricks provider recently so I guess it is introduced in one of these later versions.
Reproduction
Just using the databricks_workspace_conf resource
Expected behavior
No error
Is it a regression?
It is a new issue to us, so my take is that this is indeed a regression.
Other Information
OS: macOS and Linux
Version: different but mostly recent versions
Debug Logs
Turning on the debug logs is a bit difficult when you don't know when the issue appears. But this is the already pretty verbose error message that you get:
│ Error: cannot read workspace conf: unexpected error handling request: invalid character 'S' 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/workspace-conf?keys=enableDbfsFileBrowser,enableDcs,enforceWorkspaceViewAcls,enableIpAccessLists,enableResultsDownloading,enableUploadDataUis,enableWebTerminal,enableExportNotebook,storeInteractiveNotebookResultsInCustomerAccount,enforceClusterViewAcls,enableJobViewAcls │ > * Host: │ > * Accept: application/json │ > * Authorization: REDACTED │ > * User-Agent: databricks-tf-provider/1.39.0 databricks-sdk-go/0.37.0 go/1.21.8 os/darwin terraform/1.5.7 resource/workspace_conf auth/azure-cli │ > * X-Databricks-Azure-Sp-Management-Token: eyJ0eXAiOiJKV1QiLCJhbGc... (1086 more bytes) │ > * X-Databricks-Azure-Workspace-Resource-Id: /subscriptions/xxxxxx/resourceGroups/xxxxxxxx/providers/Microsoft.Databricks/workspaces/xxxxxx │ < HTTP/2.0 400 Bad Request │ < * Content-Type: application/json │ < * Date: Wed, 17 Apr 2024 13:36:52 GMT │ < * Server: databricks │ < * Strict-Transport-Security: max-age=31536000; includeSubDomains; preload │ < * Vary: Accept-Encoding │ < * X-Content-Type-Options: nosniff │ < * X-Databricks-Org-Id: 67013894097440 │ < Status: 400 │ < Description: Decoder failure │ < │
│
│ with module.dbx_ws_conf[0].databricks_workspace_conf.this,
│ on ../../core/databricks/modules/workspace-config/main.tf line 3, in resource "databricks_workspace_conf" "this":
│ 3: resource "databricks_workspace_conf" "this" {
The text was updated successfully, but these errors were encountered:
Description
When using the terraform databricks provider (version 1.39.0) we have quite regularly but not always this error popping up when planning or applying code. We have upgraded our databricks provider recently so I guess it is introduced in one of these later versions.
Seems related to issue #883 .
Reproduction
Just using the
databricks_workspace_conf
resourceExpected behavior
No error
Is it a regression?
It is a new issue to us, so my take is that this is indeed a regression.
Other Information
Debug Logs
Turning on the debug logs is a bit difficult when you don't know when the issue appears. But this is the already pretty verbose error message that you get:
│ Error: cannot read workspace conf: unexpected error handling request: invalid character 'S' 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/workspace-conf?keys=enableDbfsFileBrowser,enableDcs,enforceWorkspaceViewAcls,enableIpAccessLists,enableResultsDownloading,enableUploadDataUis,enableWebTerminal,enableExportNotebook,storeInteractiveNotebookResultsInCustomerAccount,enforceClusterViewAcls,enableJobViewAcls │ > * Host: │ > * Accept: application/json │ > * Authorization: REDACTED │ > * User-Agent: databricks-tf-provider/1.39.0 databricks-sdk-go/0.37.0 go/1.21.8 os/darwin terraform/1.5.7 resource/workspace_conf auth/azure-cli │ > * X-Databricks-Azure-Sp-Management-Token: eyJ0eXAiOiJKV1QiLCJhbGc... (1086 more bytes) │ > * X-Databricks-Azure-Workspace-Resource-Id: /subscriptions/xxxxxx/resourceGroups/xxxxxxxx/providers/Microsoft.Databricks/workspaces/xxxxxx │ < HTTP/2.0 400 Bad Request │ < * Content-Type: application/json │ < * Date: Wed, 17 Apr 2024 13:36:52 GMT │ < * Server: databricks │ < * Strict-Transport-Security: max-age=31536000; includeSubDomains; preload │ < * Vary: Accept-Encoding │ < * X-Content-Type-Options: nosniff │ < * X-Databricks-Org-Id: 67013894097440 │ < Status: 400 │ < Description: Decoder failure │ < │
│
│ with module.dbx_ws_conf[0].databricks_workspace_conf.this,
│ on ../../core/databricks/modules/workspace-config/main.tf line 3, in resource "databricks_workspace_conf" "this":
│ 3: resource "databricks_workspace_conf" "this" {
The text was updated successfully, but these errors were encountered: