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

[ISSUE]

Open NudjareeC opened this issue 1 year ago • 0 comments

Description Configure existing databricks workspace with standard deployment public_network_access_enabled = false network_security_group_rules_required = "NoAzureDatabricksRules" return error can not read sql endpoint: 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: Reproduction in Terraform use resource "azurerm_databricks_workspace" "this" {

public_network_access_enabled = false network_security_group_rules_required = "NoAzureDatabricksRules"

Expected behavior

Is it a regression? We just change from allow public access to no

Debug Logs │ Error: cannot read sql endpoint: 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.html?error=private-link-validation-error:5563044311228889 │ > * Host: │ > * Accept: application/json │ > * Authorization: REDACTED │ > * Referer: https://adb-..azuredatabricks.net/api/2.0/sql/warehouses/? │ > * User-Agent: databricks-tf-provider/1.34.0 databricks-sdk-go/0.29.0 go/1.20.13 os/linux terraform/1.7.0 resource/sql_endpoint auth/azure-client-secret cicd/github │ > * X-Databricks-Azure-Sp-Management-Token: *** │ > * X-Databricks-Azure-Workspace-Resource-Id: /subscriptions/***/resourceGroups/rg-dev/providers/Microsoft.Databricks/workspaces/workspacename │ < HTTP/2.0 200 OK │ < * Cache-Control: no-cache, no-store, must-revalidate │ < * Content-Security-Policy: default-src *; font-src * data:; frame-src * blob:; img-src * blob: data:; media-src * data:; object-src 'none'; style-src * 'unsafe-inline'; worker-src * blob:; script-src 'self' 'unsafe-eval' 'unsafe-hashes' 'report-sample' https://*.databricks.com https://databricks.github.io/debug-bookmarklet/ https://widget.intercom.io https://js.intercomcdn.com https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js https://databricks-ui-assets.azureedge.net https://ui-serving-cdn-testing.azureedge.net https://uiserviceprodwestus-cdn-endpoint.azureedge.net https://databricks-ui-infra.s3.us-west-2.amazonaws.com 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' 'sha256-PyQQ224lc8+iL+E2e9odKfglczwoWceWhYhFrhiFcxU=' 'sha256-2LEXJFgmmXOWz6lxNPAJ6NCOzQ2hV+e7m8HOos34Dc8=' 'sha256-Q7jANdLLtT++gyRKtf0Vdu++YUADjccPkixvr6YLjpk='; report-uri /ui-csp-reports; frame-ancestors *.vocareum.com *.docebosaas.com *.edx.org *.deloitte.com *.cloudlabs.ai *.databricks.com │ < * Content-Type: text/html; charset=utf-8 │ < * Date: Wed, 24 Jan 2024 12:24:13 GMT │ < * Server: databricks │ < * Strict-Transport-Security: max-age=31536000; includeSubDomains; preload │ < * X-Content-Type-Options: nosniff │ < * X-Ui-Svc: true │ < * X-Xss-Protection: 1; mode=block │ < <!doctype html> │ < <html> │ < <head> │ < <meta charset="utf-8"> │ < <meta http-equiv="Content-Language" content="en"> │ < <title>Databricks - Sign In</title> │ < <meta name="viewport" content="width=960"> │ < <link rel="icon" type="image/png" href="https://databricks-ui-assets.azureedge.net/favicon.ico"> │ < <meta http-equiv="content-type" content="text/html; charset=UTF8"> │ < <script id="__databricks_react_script"></script> │ < <script>window.__DATABRICKS_SAFE_FLAGS__={"databricks.infra.showErrorModalOnFetchError":true,"databricks.fe.infra.useReact18":false,"databricks.fe.infra.useReact18NewAPI":false},window.__DATABRICKS_CONFIG__={"publicPath":{"mlflow":"https://databricks-ui-assets.azureedge.net/","dbsql":"https://databricks-ui-assets.azureedge.net/","feature-store":"https://databricks-ui-assets.azureedge.net/","monolith":"https://databricks-ui-assets.azureedge.net/","jaws":"https://databricks-ui-assets.azureedge.net/"}}</script> │ < <link rel="icon" href="https://databricks-ui-assets.azureedge.net/favicon.ico"> │ < <script> │ < function setNoCdnAndReload() { │ < const secIn7Days = 60 * 60 * 24 * 7; │ < document.cookie = `x-databricks-cdn-inaccessible=true; path=/; max-age=${secIn7Days}`; │ < const metric = 'cdnFallbackOccurred'; │ < const browserUserAgent = navigator.userAgent; │ < const browserTabId = window.browserTabId; │ < const performanceEntry = performance.getEntriesByType('resource').filter(e => e.initiatorType === 'script').slice(-1)[0] │ < sessionStorage.setItem('databricks-cdn-fallback-telemetry-key', JSON.stringify({ tags: { browserUserAgent, browserTabId }, performanceEntry})); │ < window.location.reload(); │ < } │ < </script> │ < <script> │ < // Set a manual timeout for dropped packets to CDN │ < 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/login.e53c2f9b.js', 10000).catch(setNoCdnAndReload); │ < </script> │ < </head> │ < <body class="light-mode"> │ < <uses-legacy-bootstrap> │ < <div id="login-page"></div> │ < </uses-legacy-bootstrap> │ < </body> │ < </html> │ │ │ with databricks_sql_endpoint.analyst_endpoint, │ on main.tf line 194, in resource "databricks_sql_endpoint" "analyst_endpoint": │ 194: resource "databricks_sql_endpoint" "analyst_endpoint" { │ ╵ ╷ │ Error: cannot read cluster policy: 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:

NudjareeC avatar Jan 24 '24 12:01 NudjareeC