cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We are doing a little maintenance on the Dropbox Community at the moment, so please bear with us. Apologies for any inconvenience caused.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.Net client issues when using refresh tokens

.Net client issues when using refresh tokens

jfreer
Explorer | Level 4

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.

1 Accepted Solution

Accepted Solutions

Re: .Net client issues when using refresh tokens

Greg-DB
Dropboxer

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.

View solution in original post

1 Reply 1

Re: .Net client issues when using refresh tokens

Greg-DB
Dropboxer

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.

View solution in original post

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?