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

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

Open kusum91 opened this issue 1 year ago • 1 comments

Description I'm trying to create storage credential, external location and catalog for unity enabled workspace using Terraform, the storage credential is created however the plan fails in the next run when it has to fetch the credential details for creating external location.

Error message │ Error: cannot read storage credential: 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. Request log: │ GET /login?next_url=/api/2.1/unity-catalog/storage-credentials/dev-unity │ > * Host: │ > * Accept: application/json │ > * Authorization: REDACTED │ > * Referer: https://accounts.azuredatabricks.net/api/2.1/unity-catalog/storage-credentials/dev-unity? │ > * Traceparent: 00-e8da3f6ff962525a056d5e9d28f8843a-e3a2f94912ea5300-01 │ > * User-Agent: databricks-tf-provider/1.48.1 databricks-sdk-go/0.43.0 go/1.22.4 os/linux terraform/1.5.7 resource/storage_credential auth/azure-cli cicd/azure-devops │ > * X-Databricks-Azure-Sp-Management-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1HTHFqOThWTkxvWGFGZnBKQ0JwZ0I0SmFLcyIsImtpZCI6Ik1HTHFqOThWTkxvWGFGZnBKQ0JwZ0I0SmFLcyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC82ZTkzYTYyNi04YWNhLTRkYzEtOTE5MS1jZTI5MWI0Yjc1YTEvIiwiaWF0IjoxNzIwNzk2MzE4LCJuYmYiOjE3MjA3OTYzMTgsImV4cCI6MTcyMDgwMDIxOCwiYWlvIjoiQVNRQTIvOFhBQUFBa2w2ZHBKRVV3VVd2QnAvK3NqK09Pbll4azFnRGxUQjJ2Tm5VRGw4K1RMOD0iLCJhcHBpZCI6IjZ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1cZ9pVy3I9meSZMHLBq_CqKrcDfQiVvmWXGW594M-EGlP9yE8Ayjjmvx_Dow0f9u85s00Dyx3skqMWpwfdmgS3s1OIc_V3egTIQ9Ldop0UWt1blhHYXE7KkM0NxwJJLqJa4P89_Wm36zGgjYAsGPg63-kpapfGQb96WQ5i9rYg │ < HTTP/2.0 200 OK │ < * Cache-Control: no-cache, no-store, must-revalidate │ < * Content-Type: text/html; charset=utf-8 │ < * Date: Fri, 12 Jul 2024 15:03:46 GMT │ < * Server: databricks │ < * Set-Cookie: enable-armeria-server-for-ui-flags=false; Max-Age=1800; Expires=Fri, 12 Jul 2024 15:33:46 GMT; Secure; HTTPOnly; SameSite=Strictenable-armeria-workspace-server-for-ui-flags=false; Max-Age=1800; Expires=Fri, 12 Jul 2024 15:33:46 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 │ < │ < ](https://databricks-ui-assets.azureedge.net/favicon.ico%22%3E) │ < ](https://databricks-ui-assets.azureedge.net/static/js/1793.d7fb1564.js%22%3E%3C/script%3E) │ < ](https://databricks-ui-assets.azureedge.net/static/js/6001.e71693bb.js%22%3E%3C/script%3E) │ < function loadScriptWithTimeout(src, timeout) { │ < return new Promise((resolve, reject) => { │ < const script = document.createElement('script'); │ < script.defer = true; │ < script.src = src; │ < script.onload = resolve; │ < script.onerror = reject; │ < document.head.appendChild(script); │ < setTimeout(() => { │ < reject(new Error('Script load timeout')); │ < }, timeout); │ < }); │ < } │ < loadScriptWithTimeout(' https://databricks-ui-assets.azureedge.net/static/js/login.b0275931.js', 10000).catch(setNoCdnAndReload); │ < │ < <link href="https://databricks-ui-assets.azureedge.net/static/css/1793.72ea0f2e.css" rel="stylesheet"> │ < <link href="https://databricks-ui-assets.azureedge.net/static/css/8481.3979fa5c.css" rel="stylesheet"> │ < <link href="https://databricks-ui-assets.azureedge.net/static/css/login.d59a46ca.css" rel="stylesheet"> │ < │ < │ < │ <
│ < │ < │ <

kusum91 avatar Jul 12 '24 15:07 kusum91