I tried to query a list of orders with filter “first: 10” using GraphQl public api but eventually it gave me the throttling error as mentioned below.
{
“errors”: [
{
“code”: 30,
“message”: “There are not enough credits to perfom the requested operation, which requires 1101 credits, but the are only 1001 left. In 7 seconds you will have enough credits to perform the operation”,
“operation”: “orders”,
“request_id”: “5f71c1132632f4492ba27f9b”,
“required_credits”: 1101,
“remaining_credits”: 1001,
“time_remaining”: “7 seconds”
}
],
“data”: {
“orders”: null
}
}
Then I waited for 7 seconds as mentioned in response and tried again but came up with the same error again. Can you please help me to understand this? We have a production deadline ahead so expecting the reply very soon.
The way you can lowe down that complexity is by using the pagination and the first filter also in the line items connection, otherwise, it will default to 100, causing the complexity to spike to 1101