Skip to main content
Box Employee
May 21, 2025 10:48 AM UTC
Question

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

    2 replies

    Box Employee
    May 21, 2025 10:48 AM UTC

     

     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.

     

     

    Translate
    Box Employee
    May 21, 2025 10:48 AM UTC

    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.

    Translate