Skip to content

GraphQL HTTP POST-Request Error; "Problems parsing JSON" #24480

Discussion options

You must be logged in to vote

Ok, so then it isn’t the query text itself but the method of calling the endpoint that is the problem. The only guess I have there is that you seem to be using the JavaScript request library and the documentation seems to indicate that the form parameter of the post method adds the data you supply as querystring parameters, rather than adding the text to the body. Try supplying the query contents to the body parameter of the post method instead.

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants