-
Notifications
You must be signed in to change notification settings - Fork 453
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
How does GraphQL request supose to work? #1335
Comments
It doesn't look like you've included the additional header in your request. Does it work when this is added?
Making GraphQL Request (README.md) |
Same here, I'm trying to figure out how to make a simple graphql request, but I can't make it work no matter which service I try to access: github, monday, geographql, etc... all of them complains about "bad/invalid request". Meanwhile the same request works perfectly with curl, Insomnia or Thunder Client inside the vscodium. My request looks like this:
And the response: {
"errors": [
{
"message": "Invalid GraphQL request",
"extensions": {
"details": "failed to deserialize the request body into JSON: key must be a string at line 2 column 3",
"code": "INVALID_GRAPHQL_REQUEST"
}
}
],
"account_id": 12345678
} VScodium 1.96.4 |
The answer is as easy as writing
instead of
(lowercase the 'graphql' string in the x-request-type header) |
I'm making GQL request but getting error, how does this supose to work in RestClient?
The text was updated successfully, but these errors were encountered: