microsoft / azdo-databricks

A set of Build and Release tasks for Building, Deploying and Testing Databricks notebooks
MIT License
25 stars 32 forks source link

[error]Unexpected token W in JSON at position 0 #45

Closed tgkarthickbabu1986 closed 3 years ago

tgkarthickbabu1986 commented 3 years ago

We are trying to execute DataBricks Notebook from CICD pipeline. Its working fine last Monday(18th October 2021). But Now its throwing the following error. Could you please, let us know the steps to fix this issue.

2021-10-19T17:07:44.1187852Z [command]C:\hostedtoolcache\windows\Python\3.10.0\x64\Scripts\databricks.exe jobs create --json-file D:\a_tasks\executenotebook_ac263826-c64e-4f2d-b7ce-5f7e777fd8bc\0.5.2\job-configuration.json --profile AZDO 2021-10-19T17:07:44.6513431Z WARN: Your CLI is configured to use Jobs API 2.0. In order to use the latest Jobs features please upgrade to 2.1: 'databricks jobs configure --version=2.1'. Future versions of this CLI will default to the new Jobs API. Learn more at https://docs.databricks.com/dev-tools/api/latest/jobs.html 2021-10-19T17:07:44.6514792Z { 2021-10-19T17:07:44.6515219Z "job_id": 16204911 2021-10-19T17:07:44.6515595Z } 2021-10-19T17:07:44.6568609Z ##[error]Unexpected token W in JSON at position 0 2021-10-19T17:07:44.6611871Z ##[section]Finishing: Execute /deployments/common/CICD_Exec/CICD

image

Thanks in Advance.

Regards, Karthick Babu T G

adi-sinha commented 3 years ago

We are facing the same issue and any update will be appreciable

Thanks!

Aditya

pdruzhinin commented 3 years ago

The API now returns a warning before JSON and the task can't parse it. I added a task like this between CLI configuration and the notebook execution and it fixed it for me.

- script: databricks jobs configure --version=2.1 --profile AZDO

adi-sinha commented 3 years ago

The API now returns a warning before JSON and the task can't parse it. I added a task like this between CLI configuration and the notebook execution and it fixed it for me.

- script: databricks jobs configure --version=2.1 --profile AZDO

Thanks! It is working for me as well...

tgkarthickbabu1986 commented 3 years ago

Thanks. working fine now.