Skip to content

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

Open
@moderncaliberwebdev

Description

@moderncaliberwebdev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions