How do I set the time out for API calls?
jagsridharan opened this issue · comments
- I have checked that the SDK documentation doesn't solve my issue.
- I have checked that the API documentation doesn't solve my issue.
- I have searched the Box Developer Forums and my issue isn't already reported (or if it has been reported, I have attached a link to it, for reference).
- I have searched Issues in this repo and my issue isn't already reported.
Description of the Issue
Recently, i am getting a lot of time out issues when executing the Box.V2 or Box.V2.Core. Is there any way I can increase the time out?
Steps to Reproduce
- Execute any Box API related calls that are going to run for longer time
- Say BoxCollection items = await client.FoldersManager.GetFolderItemsAsync(item.Id, 1000, 0, fields);
- It fails with the time out issue
Expected Behavior
Execute the scripts without the time out issues
Error Message, Including Stack Trace
at Box.V2.Request.HttpRequestHandler.getResponse(IBoxRequest request, Boolean isStream, HttpRequestMessage httpRequest)\r\n at Box.V2.Request.HttpRequestHandler.ExecuteAsync[T](IBoxRequest request)\r\n at Box.V2.Services.BoxService.ToResponseAsync[T](IBoxRequest request)\r\n at Box.V2.Managers.BoxResourceManager.ExecuteRequest[T](IBoxRequest request, Boolean queueRequest)\r\n at Box.V2.Managers.BoxResourceManager.ToResponseAsync[T](IBoxRequest request, Boolean queueRequest)\r\n at Box.V2.Managers.BoxFoldersManager.GetFolderItemsAsync(String id, Int32 limit, Int32 offset, IEnumerable1 fields, Boolean autoPaginate, String sort, Nullable
1 direction)\r\n
Screenshots
Versions Used
.Net SDK: v3.36.0
Windows: Windows 10 19041.1110
Sorry for the late response. It's currently not possible to set timeout of a BoxClient. We have it already in our backlog and there exists an issue in the GitHub. We don't have it prioritized yet so I cannot give you any timeframe when this is coming to our SDK. Please follow the #538 for any updates.
Closing as duplicate.
Thanks,
@mwwoda