Skip to content

Instantly share code, notes, and snippets.

@philsch
Last active February 10, 2019 16:05
Show Gist options
  • Save philsch/ec44c5a426b0c8e20091af1cfbff137c to your computer and use it in GitHub Desktop.
Save philsch/ec44c5a426b0c8e20091af1cfbff137c to your computer and use it in GitHub Desktop.
Blogpost: GraphQL Apollo Server errors and the request context
{
textPayload: "[f85423] {"host":"api.example.org","content-length":"1014","accept":"*/*",
"origin":"https://api.example.org","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36",
"content-type":"application/json","accept-encoding":"gzip, deflate, br",
"via":"1.1 google","x-forwarded-for":"***","x-forwarded-proto":"https",
"authorization":"***"}
timestamp: "2019-02-05T13:24:20Z"
}
{
textPayload: "[f85423] SyntaxError Syntax Error: Expected Name, found )"
timestamp: "2019-02-05T13:24:20Z"
}
{
textPayload: "[f85423] Original error body: query
{getSetting(settingsId:"123", language: "en")
{ features {featureA} ) }}"
timestamp: "2019-02-05T13:24:20Z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment