KaranamS
Contributor III

Hi @jeremy98 , 

It looks like the access token is incorrect or not valid. Can you please verify the following?

1. Validate your access token - if you get 403 forbidden error, your access token is invalid.

curl -X GET "https://<workspace_host>/api/2.2/jobs/get" \
-H "Authorization: Bearer <your_token>" \
-H "Content-Type: application/json" \
-d '{"job_id": <your_job_id>}'

2. Validate your workspace host url 

print(self.workspace_host)

It should be in this format and ensure no trailing slash at the end - https://<databricks-instance>.cloud.databricks.com

Hope this helps!

View solution in original post