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

UserMateUser's avatar
UserMateUser
New member | Level 2
10 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?