REST API - Operation timed out

  • 1
  • Problem
  • Updated 4 months ago

Hi Team,


I am using Sharefile REST APIs to send the files to sharefile folders from my local server. I am getting the Request timed out error more frequently, but sometimes it works with the same code.

I have implemented retries as well, but its fails all with the said error. 

One of the case is when I requested the below:

https://mycompany.sf-api.com/sf/v3/Items(foxxxx-xxxx-xxxx-xxxx-4xxx)/Upload

 I am getting below error: The operation has timed out.

Request help in the case.

Thanks in anticipation.

Regards Prashant Bhatt

Photo of Prashant Bhatt

Prashant Bhatt

  • 5 Posts
  • 0 Reply Likes

Posted 4 months ago

  • 1
Photo of Andy Berryman

Andy Berryman, Employee

  • 14 Posts
  • 5 Reply Likes
I would assume that the files are varying in size ... Correct?  How long of a timeout are you using?

- Andy
Photo of Prashant Bhatt

Prashant Bhatt

  • 5 Posts
  • 0 Reply Likes

Hi Andy


Thanks for the response.

I am using 240 seconds timeout. Also, files are small text files but it varies from 1KB to 140KB.

Thanks

Prashant

Photo of Andy Berryman

Andy Berryman, Employee

  • 14 Posts
  • 5 Reply Likes
Ok ... Well ... I would think that for files that are small like that you wouldnt be having much of an issue with a 240 second timeout.  Do you have any logs where you have the size of the file that was attempted when the timeout occurred?  Basically I'm just trying to correlate if the timeouts are occurring for the larger files and not an issue for the smaller ones.  I might suggest increasing the timeout and writing some form of a log entry for each upload where you include the file size along with the amount of time taken.  And then maybe that data would help point in a direction.

- Andy