-
Notifications
You must be signed in to change notification settings - Fork 66.7k
GraphQL errors, and especially rate limit errors, are not documented #22607
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
contentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamgraphqlContent related to GraphQLContent related to GraphQLhelp wantedAnyone is welcome to open a pull request to fix this issueAnyone is welcome to open a pull request to fix this issuepumpkin-spiceSpecifically tracked Hacktoberfest issue - internal purposesSpecifically tracked Hacktoberfest issue - internal purposesstaleThere is no recent activity on this issue or pull requestThere is no recent activity on this issue or pull request
Metadata
Metadata
Assignees
Labels
contentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamgraphqlContent related to GraphQLContent related to GraphQLhelp wantedAnyone is welcome to open a pull request to fix this issueAnyone is welcome to open a pull request to fix this issuepumpkin-spiceSpecifically tracked Hacktoberfest issue - internal purposesSpecifically tracked Hacktoberfest issue - internal purposesstaleThere is no recent activity on this issue or pull requestThere is no recent activity on this issue or pull request
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/graphql
What part(s) of the article would you like to see updated?
There seems to be no documentation for what the GraphQL API returns on error conditions.
In particular, I can't find what error code to expect once the rate limit is exceeded. I see I can use the
rateLimitquery field to get information on how many points I have left when a query succeeds, but I can't rely on that alone as I might have a few points left and then make a very large request.I assume a rate limit error will also provide a
resetAtfield, but I have no idea under what name or path. The only way I can see to develop an app that will handle rate limits gracefully is to burn 5000 points and hit the error to learn how it looks like.Additional information
No response
Maintainer update
Proposed changes to fix this issue
Expand the Resource limitations article with examples of what happens if you exceed rate limits using the information from the comments below, in particular: