cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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

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
Esteemed Contributor III
Esteemed Contributor III

Hi, Could you please renew the token and confirm? 

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.