Hello,
Our app all of the sudden is getting the following exception when trying to call UploadSessionStartAsync like so:
var result = await DropboxClientInstance.Files.UploadSessionStartAsync(body: memStream, uploadSessionStartArg:new UploadSessionStartArg());
Here is the exception:
The request was canceled due to the configured HttpClient.Timeout of 300 seconds elapsing.
The timeout was originally 100ms and I thought maybe there's some network lag so I increased the httpclient timeout to 5 mins (or 300 seconds) when initializing the Dropbox Client like so like so:
var dbxConfig = new DropboxClientConfig();
dbxConfig.HttpClient = new HttpClient();
dbxConfig.HttpClient.Timeout = new TimeSpan(0, 5, 0); //setting httpclient timeout to 5 mins or 300 seconds
var tokenResult = await DropboxOAuth2Helper.ProcessCodeFlowAsync(code: input, appKey: dbxAppKey, appSecret: dbxAppSecretKey, redirectUri: null);
DropboxClientInstance = new DropboxClient(appKey: dbxAppKey,
appSecret: dbxAppSecretKey,
oauth2AccessToken: tokenResult.AccessToken,
oauth2RefreshToken: tokenResult.RefreshToken,
oauth2AccessTokenExpiresAt: tokenResult.ExpiresAt.Value, config: dbxConfig);
I'm using V7 of the .net library
Anyone know why all of the sudden I would be getting an httpclient timeout when it was working fine for months without an issue?
Thanks in advance for the help!