Two or more concurrent requests to Box API method causing problem
Hi,
I am making two concurrent requests to BOX API from two different threads using same access token. And I am getting below error.
"System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.210.removed for privacy"
Below is then method i am calling from my applicaiton.
BoxClient.FilesManager.GetInformationAsync(FileId)
My query : Can't we make concurrent requests to BOX API ?????
Thanks,
Deepak
-
Thanks for prompt reply, but I think I couldn’t clear my query, well here is the scenario, please have a look.
I have created two apps
- Token Refresher :- Refreshes the token after every 55 minutes and stores the token in database, also stores users in database (but only first time when utility started)
- File Meta Data Downloader :- it fetches one users from database one by one and downloads file meta data for that user.
Now when I run two instances of “file meta data downloader” utility, I get the error as mentioned above. As I am trying to download “file meta data” for users at a time simultaneously.
サインインしてコメントを残してください。
コメント
2件のコメント