plugins
plugins copied to clipboard
feat(gatsby-source-strapi): Add timeout setting for data fetching
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?
Hi! did you solved this? I'm getting the same error with a jpeg file that weights 343KB.
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.
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!
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
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.
I believe there is an env variable you can specify the memory and timeout limits for Gatsby build.
@MRDRMUFN could you please specify where you got that information from?
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.