We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
adamatronix
9 months agoNew member | Level 2
Getting 409 error when trying to list folders when using refresh token
I've just started playing around with the sdk, and been using the generated access token in the Settings. I realized this token expires every 4 hours, so I want to implement the refresh token. http...
DB-Des
Dropbox Community Moderator
9 months agoEven though it appears as though you are indeed passing a refresh token to the request in your third code snippet example, the request is defaulting to "Basic auth" because it is not recognizing the value of the refresh token — meaning, this is most likely an empty value. A malformed or invalid refresh token would throw a different error.
I recommend double-checking that the refresh token is being correctly pulled in from the env file into the configuration of the new Dropbox client instance.
Manually creating an access token, using the refresh token, as you mentioned in your latest post could be an alternative as well.
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!