cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

CURL API - Error while parsing token: io.jsonwebtoken.ExpiredJwtException: JWT expired

Simon_T
New Contributor III

I am running this code:

curl -X --request GET -H "Authorization: Bearer <databricks token>" "https://adb-1817728758721967.7.azuredatabricks.net/api/2.0/clusters/list"

And I am getting this error:

2024-01-17T13:21:41.4245092Z </head>
2024-01-17T13:21:41.4245778Z <body><h2>HTTP ERROR 403</h2>
2024-01-17T13:21:41.4246007Z <p>Problem accessing /api/2.0/clusters/list. Reason:
2024-01-17T13:21:41.4246727Z <pre> Error while parsing token: io.jsonwebtoken.ExpiredJwtException: JWT expired at 2024-01-17T12:59:10Z. Current time: 2024-01-17T13:21:41Z, a difference of 1351421 milliseconds. Allowed clock skew: 0 milliseconds.</pre></p>
2024-01-17T13:21:41.4247039Z </body>
2024-01-17T13:21:41.4247147Z </html>

Please advise.

 

 

1 REPLY 1

Debayan
Databricks Employee
Databricks Employee

Hi, Could you please renew the token and confirm? 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group