Skip to content

GraphQL errors, and especially rate limit errors, are not documented #22607

Closed as not planned
@FiloSottile

Description

@FiloSottile

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 rateLimit query 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 resetAt field, 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamgraphqlContent related to GraphQLhelp wantedAnyone is welcome to open a pull request to fix this issuepumpkin-spiceSpecifically tracked Hacktoberfest issue - internal purposesstaleThere is no recent activity on this issue or pull request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions