plugins icon indicating copy to clipboard operation
plugins copied to clipboard

feat(gatsby-source-strapi): Add timeout setting for data fetching

Open phmasek opened this issue 3 years ago • 8 comments

I've got a video file that is about 100MB hosted on my remote Strapi CMS server. It receives timeout before it manages to download the file.

Is it possible to adjust the timeout somehow?

phmasek avatar May 20 '21 18:05 phmasek

Hi! did you solved this? I'm getting the same error with a jpeg file that weights 343KB.

guillebril avatar May 31 '21 00:05 guillebril

I'm getting the issue as well with a heavy image. In my understanding there is a timeout for a file download because it happens to me locally with a slow internet connection.

It would be great to control the timeout milliseconds for the fetch requests.

iassainov avatar Jun 06 '21 07:06 iassainov

Hi! I'm getting the same error with a video file that size 193MB. My video is uploaded on s3 bucket then also facing a timeout issue.

It would be great to get a resolution ASAP. Thanks in advance!

santoshdawange avatar Jul 02 '21 06:07 santoshdawange

Hi! I'm getting the same error with a video file that size 193MB. My video is uploaded on s3 bucket then also facing a timeout issue.

It would be great to get a resolution ASAP. Thanks in advance!

Solve this after compressing the video and make size below 100 MB

santoshdawange avatar Jul 05 '21 09:07 santoshdawange

How did y'all determine that the issue was in downloading a particularly large image? I'm seeing an ETIMEDOUT error and am curious if this is the root cause.

MrChrisRodriguez avatar Jun 07 '22 01:06 MrChrisRodriguez

I believe there is an env variable you can specify the memory and timeout limits for Gatsby build.

MRDRMUFN avatar Jun 07 '22 17:06 MRDRMUFN

@MRDRMUFN could you please specify where you got that information from?

phmasek avatar Oct 10 '22 16:10 phmasek

Seems like this is the spot where Gatsby sets the different variables for fetching resources (using env vars).

Adding GATSBY_STALL_TIMEOUT=120000 to my .env file worked for me.

phmasek avatar Mar 21 '23 13:03 phmasek