We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

UserMateUser's avatar
UserMateUser
New member | Level 2
8 months ago

Java SDK getting "Invalid authorization value in HTTP header/URL parameter"

Hello!
I'm using Java SDK and trying to add dropbox into my app. I was following the guide from dropbox github https://github.com/dropbox/dropbox-sdk-java/tree/main
When I try to check if it works, I get exception from the subject at the line with

FullAccount account = dropboxClient.users().getCurrentAccount();

(dropboxClient is an instance of DbxClientV2)

I initialize dropbox client as a bean on startup using access token generated from api dev console, token seems to be passed correctly as I debuged it during initialization

This client is later autowired inside a service

But when it comes to the client call in the debugger I see that access token is empty, while config seems to be correctly passed

 

Am I initializing it wrong? Maybe there should be other parameters, or I need to additionaly authorize my app before trying to use any methods?

Oh and also, as I understood, if the app to be deployed somewhere, there should be used another way of authorization for other users?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 57 minutes ago
325 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!