Misleading error message when Authorization header is not set


#1

If Authorization header is not specified you get a really misleading error message:

The GitHub GraphQL API is currently offline for maintenance.

I’ve mistakenly typed Authentication instead of Authorization in my code:

$ curl -H "Authentication: bearer xxxx" https://api.github.com/graphql
{
  "message": "The GitHub GraphQL API is currently offline for maintenance.",
  "documentation_url": "https://platform.github.community/c/graphql-api"
}

and because of this message I’ve been waiting for 1.5month for the maintenance to end :joy:


Why documentation_url points to v3 instead of v4?
#2

Oh no, great catch @RomanGotsiy! I’ve opened an internal issue to resolve this. Thank you for reporting it.