Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] Error: cannot read workspace conf: unexpected error handling request: invalid character 'S' looking for beginning of value. #892

Open
gercograndia opened this issue Apr 17, 2024 · 0 comments

Comments

@gercograndia
Copy link

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 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" {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant