We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
springyulei
9 years agoNew member | Level 2
Error Expecting "Bearer <oauth2-access-token>
status: 400, error: 'Error in call to API function "files/list_folder": Invalid authorization value in HTTP header "Authorization": "Bearer [object Object]". Expecting "Bearer <oauth2-access-token>...
Greg-DB
Dropbox Community Moderator
9 years agoBased on the error you shared, it seems you're passing in some JavaScript object instead of a string for the access token.
I can't offer help with passport-dropbox-oauth2 itself, as it's made by a third party, but can you share the code snippet(s) where you supply the access token?
I can't offer help with passport-dropbox-oauth2 itself, as it's made by a third party, but can you share the code snippet(s) where you supply the access token?
springyulei
9 years agoNew member | Level 2
Thank you very much, Greg.
You are right.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!