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

429 Errors With Websites With large Quantities of Variable Products #897

Open
moderncaliberwebdev opened this issue Oct 17, 2024 · 0 comments

Comments

@moderncaliberwebdev
Copy link

Describe the bug
WPGraphQL will return a 429 error when there are multiple queries from one user within a short timeframe on stores that have large quantities of variable products.

To Reproduce
Steps to reproduce the behavior:
This happens in development as well, but the easiest way to reproduce is with the GraphQL IDE

  1. Go to the GraphQL IDE in Wordpress
  2. Make a new product query
  3. Execute the query multiple times quickly, executing it again right after you get your response from the previous query. (It takes me about 6 or 7 executions and my store has 1300 products)
  4. You will get an error that says "Unexpected token '<', "<html clas"... is not valid JSON". This is a 429 error saying that your IP address has had too many requests

Expected behavior
There should be no 429 error when querying products, especially not when I am making as few as 6 queries. This volume would be achieved in a live environment by simply clicking around the store for 45 seconds.

Screenshots
Screenshot 2024-10-17 at 3 08 18 PM

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Version: Chrome Version 125.0.6422.112

Plugin Versions

  • WooGraphQL Version: 0.21.0
  • WPGraphQL Version: 1.28.1
  • WordPress Version: 6.6.1
  • WooCommerce Version: 9.2.2

Additional context
Add any other context about the problem here.

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

1 participant