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

[ISSUE] Databricks CIi Issue

Open chhuganirithwik opened this issue 1 year ago • 0 comments

Description When I run the databricks workspace list command in my azure pipeline with the suggest environment variables I get the following error

Starting: databricks validate

Task : Command line Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows Version : 2.237.1 Author : Microsoft Corporation Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line

Generating script. ========================== Starting Command Output =========================== /usr/bin/bash --noprofile --norc /home/vsts/work/_temp/9e26d4be-da70-49e5-a9b0-79e2e59a6d87.sh Error: 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:1155429047410735
> * Host:
> * Accept: application/json
> * Authorization: REDACTED
> * Referer: ***/api/2.0/preview/scim/v2/Me
> * User-Agent: cli/0.219.0 databricks-sdk-go/0.39.0 go/1.21.9 os/linux cmd/bundle_validate auth/oauth-m2m cicd/azure-devops
< 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-YOlue469P2BtTMZYUFLupA2aOUsgc6B/TDewH7/Qz7s=' 'sha256-Lh4yp7cr3YOJ3MOn6erNz3E3WI0JA20mWV+0RuuviFM=' 'sha256-d9wOl3/4eXWLGsFMTGrMFV8UH7KnHrnP9LSr4J+CTPQ='; report-uri /ui-csp-reports; frame-ancestors *.vocareum.com *.docebosaas.com *.edx.org *.deloitte.com *.cloudlabs.ai *.databricks.com *.myteksi.net
< * Content-Type: text/html; charset=utf-8
< * Date: Thu, 9 May 2024 10:26:01 GMT
< * Server: databricks
< * Set-Cookie: enable-armeria-workspace-server-for-ui-flags=false; Max-Age=1800; Expires=Thu, 09 May 2024 10:56:01 GMT; Secure; HTTPOnly; SameSite=Strict
< * 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>
CmdLine@2 - Command line v2 task
Run a command line script using Bash on Linux and macOS and cmd.exe on Windows.

**Reproduction**
I am trying to execute the code through Azure Pipelines using the following yml code
trigger:
  none
pool:
  vmImage: ubuntu-latest
steps:
- script: echo "hello world"
- script: |
    databricks workspace list /Workspace
  displayName: 'databricks workspace list'

**Expected behavior**
It should give me the contents of the workspace folder in Databricks

**Is it a regression?**
I've got a personal workspace that doesn't have any networking configuration where the above works perfectly fine, but the same commands run into the above issue when ran in a customer environment.


**Other Information**
Ubuntu-latest


chhuganirithwik avatar May 09 '24 11:05 chhuganirithwik