Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

jfreer's avatar
jfreer
Explorer | Level 4
5 years ago
Solved

.Net client issues when using refresh tokens

I am trying to use the .Net SDK, versions 6.2 and 6.14, with refresh tokens but am having issues. We create a DropboxClient with a DropboxClientConfig with the HttpClient configured with a short 7 second timeout and proxy configuration. This setup has worked well in all environments with long lived access tokens for years. When working with Refresh tokens, I am having the following issues:
1. API calls work fine when calling locally (where I don't need a proxy) and take less than a second
2. When deployed to our test environment, the API calls timeout after 100 seconds
In the refresh token case, I suspect that the Dropbox client is not honoring our DropboxClientConfig. I've examined your Dropbox client code and this indeed looks to be the case. When your code tries to retrieve a new access token using the Refresh token, it uses a default HttpClient (with 100 second timeout), not the one passed via DropboxClientConfig.

Please comment how to address this. I cannot meet the Sept 30th deadline if this code does not work.

  • Thanks for the report! I'll ask the team to fix this up.

     

    I can't promise a timeline for that though, so feel free to open an API ticket with the relevant app key(s) to ask for an extension.

3 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    5 years ago

    Thanks for the report! I'll ask the team to fix this up.

     

    I can't promise a timeline for that though, so feel free to open an API ticket with the relevant app key(s) to ask for an extension.

  • jfreer's avatar
    jfreer
    Explorer | Level 4
    4 years ago

    Is there any status on the fix for this? Shall I open an issue on the gitlab SDK repo so I can track it?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    This is still open with the team, but I don't have an update on it. I'll follow up here once I do. There's no need to open another thread/issue for this. This thread serves as the external reference for this.

About Dropbox API Support & Feedback

Node avatar for 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!