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? 

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now