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?