Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
phmasek opened this issue May 20, 2021 · 8 comments
Open

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

phmasek opened this issue May 20, 2021 · 8 comments
Labels
enhancement New feature or request

Comments

@phmasek
Copy link

phmasek commented May 20, 2021

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?

@guillebril
Copy link

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

@iassainov
Copy link

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.

@santoshdawange
Copy link

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
Copy link

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

@remidej remidej changed the title Failed to download video file after 3 attempts Add timeout setting for data fetching Jul 27, 2021
@MrChrisRodriguez
Copy link

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.

@MRDRMUFN
Copy link

MRDRMUFN commented Jun 7, 2022

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

@phmasek
Copy link
Author

phmasek commented Oct 10, 2022

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

@moonmeister moonmeister changed the title Add timeout setting for data fetching feat(gatsby-source-strapi): Add timeout setting for data fetching Dec 27, 2022
@moonmeister moonmeister transferred this issue from gatsby-uc/gatsby-source-strapi Dec 27, 2022
@moonmeister moonmeister added the enhancement New feature or request label Dec 27, 2022
@phmasek
Copy link
Author

phmasek commented Mar 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants