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

cannot read secret acl: unexpected error handling request: invalid character '<' looking for beginning of value.

Open TjommeVergauwen opened this issue 1 year ago • 0 comments

Description When retrieving existing key vault settings in datazbricks using Terraform, the following error is returned: │ Error: cannot read secret acl: unexpected error handling request: invalid character '<' 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.

Reproduction GET /login?next_url=/api/2.0/secrets/acls/get?principal=XXX&scope=YYY

  • Host:
  • Accept: application/json
  • Authorization: REDACTED
  • Referer: https://accounts.azuredatabricks.net/api/2.0/secrets/acls/get?principal=XXX&scope=YYY
  • User-Agent: databricks-tf-provider/1.35.0 databricks-sdk-go/0.30.0 go/1.21.6 os/windows terraform/1.7.3 resource/secret_acl auth/azure-cli
  • X-Databricks-Azure-Sp-Management-Token: XXX

Output: HTTP/2.0 200 OK

  • Cache-Control: no-cache, no-store, must-revalidate
  • Content-Type: text/html; charset=utf-8
  • Date: Tue, 27 Feb 2024 13:00:54 GMT
  • Server: databricks
  • Set-Cookie: enable-armeria-server-for-ui-flags=false; Max-Age=1800; Expires=Tue, 27 Feb 2024 13:30:54 GMT; Secure; HTTPOnly; SameSite=Strict
  • Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  • X-Content-Type-Options: nosniff
  • X-Ui-Svc: true
Databricks - Sign in

Expected behavior Not an error, but a list of values from the API

Is it a regression? No idea

Debug Logs See output

Other Information Terraform v1.7.3 on windows_amd64

  • provider registry.terraform.io/databricks/databricks v1.35.0 Databricks CLI v0.214.1

Additional context GET command is produced by Terraform

TjommeVergauwen avatar Feb 27 '24 15:02 TjommeVergauwen