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

Error: Too Many Requests #247

Open
johnwp opened this issue Oct 29, 2022 · 11 comments
Open

Error: Too Many Requests #247

johnwp opened this issue Oct 29, 2022 · 11 comments

Comments

@johnwp
Copy link

johnwp commented Oct 29, 2022

Are there any known workarounds for this build-time error?

[gatsby-source-graphcms]: Problem building GraphCMS nodes
Error: Too Many Requests

The error appears intermittently (~50%) and usually resolves after running the build again.

Running versions:
gatsby: ^4.24.4
gatsby-source-graphcms: ^2.8.0

@augustynglowacki
Copy link

Just experienced the same error after doing some changes on the hygraph panel & running the gatsby develop.

@roderickfung
Copy link

this is causing intermittent build failures on our CD pipeline. our current workaround is to just keep running a build until it passes, which isn't effective / efficient.

@johnwp
Copy link
Author

johnwp commented Nov 4, 2022

@itscarlosrufo is this expected?

@johnwp
Copy link
Author

johnwp commented Nov 4, 2022

I'm using an auth token to connect, so I'm surprised it's throttling me when I'm only connecting at build time.

@roderickfung
Copy link

https://hygraph.com/docs/api-reference/basics/errors#429-too-many-requests

looks like hygraph is having rate limiting issues.

@augustynglowacki
Copy link

The issue is making the free tier almost unusable now. I have to restart the build 5 times now just to see 1 small change in the content.

@johnwp
Copy link
Author

johnwp commented Nov 9, 2022

Is this maybe a product issue? @gijshendrix

@belazer
Copy link
Member

belazer commented Nov 10, 2022

Hey folks!

The rate limit is working as expected - the current rate limits can be found in the FAQ section below the pricing table here: https://hygraph.com/pricing

The older free plans (with 5 seats, for example) still have a rate limit of 10 req/s. We would recommend looking into ways of throttling requests so you can stay within those limits.

@johnwp
Copy link
Author

johnwp commented Nov 10, 2022

Hey @belazer, thanks for the reply.

Is there a way to ensure this plugin doesn't exceed 10 req/s? It's causing builds to fail right and left.

Or perhaps slightly increase the limit for authenticated requests?

@belazer
Copy link
Member

belazer commented Nov 11, 2022

Unfortunately, I'm not the right person to comment on the code side - but I remember there was a way to throttle requests within Gatsby. I will need to check with the team if anyone is aware of a way to do it.

@belazer
Copy link
Member

belazer commented Nov 11, 2022

Did you already try the queryConcurrency option mentioned here? https://github.com/hygraph/gatsby-source-graphcms#options

MannyIkomi added a commit to MannyIkomi/libros-for-language that referenced this issue Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants