You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@MovingToWeb can you please help here... Just to highlight that I am using java 1.8 in my case and this shouldn't be the problem as my application compiled and code is in running state.
I have observed one more thing, when I am running through POSTMAN(Chrome/Window) it is working with contentType application/json but when trying with Postman as Graphql it is throwing above error. I am getting in playground as well.
While trying to execute the project using below query
{
book(id: "123") {
title
authors
publisher
}
}
I am getting below error.
{
"data": null,
"errors": [
{
"message": "Invalid Syntax",
"locations": [
{
"line": 1,
"column": 1,
"sourceName": null
}
],
"errorType": "InvalidSyntax",
"path": null,
"extensions": null
}
],
"dataPresent": false,
"extensions": null
}
On server side I am getting below error
2021-05-12 18:11:10.346 WARN 16964 --- [o-auto-1-exec-5] graphql.GraphQL : Query failed to parse : '{"operationName":null,"variables":{},"query":"{\n book(id: "123") {\n title\n authors\n publisher\n }\n}\n"}'
Please help in understanding the root cause of this problem and how to fix the same.
The text was updated successfully, but these errors were encountered: