Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL Errors don't have correct content type #218

Open
Martmists-GH opened this issue Jul 19, 2023 · 1 comment
Open

GraphQL Errors don't have correct content type #218

Martmists-GH opened this issue Jul 19, 2023 · 1 comment

Comments

@Martmists-GH
Copy link

Query:

query {
  nonExistentQuery
}

Response:

// Content-Type: text/plain;charset=UTF-8
{
  "errors": [
    {
      "message": "Property nonExistentQuery on Query does not exist",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": []
    }
  ]
}

The expected behaviour is to have content-type of application/json on errors, which it already does on successes.

@stuebingerb
Copy link

fyi, this has been fixed in stuebingerb/KGraphQL@f0fb2a6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants