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

Forum Discussion

sbrownnw's avatar
sbrownnw
Explorer | Level 4
2 years ago

slow response time when calling Dropbox.Api (6.37.0) with expired access token

Hello.  I am calling an established Dropbox account setup for an application with API access with what was once a valid access token that has expired.  It takes about 15 seconds or more to obtain the...
  • Greg-DB's avatar
    2 years ago

    Thanks for the report. It looks like the .NET SDK is unnecessarily retrying (repeatedly, with a backoff) on 'expired_access_token' failures. I'll ask the team to update it to skip the automatic retries on that kind of failure.

     

    To work around this, you can make a DropboxClientConfig with maxRetriesOnError set to 0, and pass that to DropboxClient. That would prevent the automatic retries and eliminate the extra latency in this case. It would also prevent the automatic retries in cases where they may be useful though, so if you want to lower that extra latency without completely disabling automatic retries, you can set it to a number between 0 and 4 (since 4 is the default).

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: 4 hours 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!