You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

BLV2k22's avatar
BLV2k22
New member | Level 2
3 years ago

Refresh access token throws an exception

Hi,

i implemented the DropBox Java SDK 5.4.4 and authorized the client via PKCE Authentication. Credentials are stored in a file.

 

As documented, the access token is a short living token and the refresh token is the same with every new authentication.

 

But when client tries to refresh the token (local Spring Boot application was started some hours after authentication) the client throws a DbxOAuthException with DbxOAuthError "unknown". 

 

Any ideas?

 

The app in the app console is  in development mode.

 

Any ideas?

 

  • BLV2k22's avatar
    BLV2k22
    New member | Level 2

    Hi,

     

    it seems i solved the issue. It was a typo in the app secret 😕 Now when i call the refresh method in credentials i am getting a new short living access token,

     

    Best regards

     

     

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!