Skip to main content
Question

Two or more concurrent requests to Box API method causing problem

  • May 21, 2025
  • 2 replies
  • 36 views

Forum|alt.badge.img

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

2 replies

Forum|alt.badge.img

 

 You can make concurrent requests to our API. As you design your system, please keep in mind our soft limit of 10 API calls per user per second.

 

 


Forum|alt.badge.img

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

 

  1. 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)
  2. 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.