Closed John-Paul-R closed 3 years ago
Have not encountered this issue in over 2 weeks. Closing issue.
This has been happening again for me since around 2022-01-08. Large requests fail with this error about half the time, but the same request succeeds after trying again enough times. It seems failure is more likely the more complex the query is.
I made various queries 10 times in a row as an experiment.
Returns a 1.61 MB response which took 9~20s, and succeeded 6/10 times.
Removing all fields other than dateModified
...
Returns an 8 KB response which took 0.24~0.5s, and succeeded 10/10 times.
Keeping all the fields, but only the first mod...
Returns a 75 KB response which took 3~20 seconds, and succeeded 5/10 times.
Issue Outline
Certain GraphQL queries respond with an error when issued for the first time within a certain timespan.
This is an issue I encountered recently, and still have relatively little information at present. I generally encounter it the first time I make a certain GraphQL request on a day,
but not on the second and later attempts.(Edit: upon further inspection, this is inconsistent.)I conducted a brief series of tests today in an effort to pin how long after the first (errored) response is received that the error starts to appear again.
To be fair, I'm not 100% certain that the issue is related to the amount of time between requests, but, in my experience, the error happens much more often the first time I make a request in a day. (Although this could be sample size, as I first noticed the issue about a week ago.)
Steps to reproduce
This isn't incredibly specific at the moment. I can try to narrow it down a bit more if necessary, but it's a strange process because I'm not 100% certain of the time interval I need to wait to be sure that the conditions needed for the error to occur are met (if it's even actually related to the time between requests).
My Request
My GraphQL request was sent as a POST request to
https://curse.nikky.moe/graphql
with these headers...'Content-Type': 'application/json'
,'Accept': 'application/json'
...and with this as the contents.Errored response
The error that occurs for the first request made within a certain time interval. (Reformatted a bit for readability)
Successful response
As far as I can tell, the response to a request made shortly after the initial errored response is completely successful and returns the expected data. You can view one of these successful responses at this link (it's big (2.8 MB)).