Json response of graphql test responds "Parse error", any hints? #1275
julielaursen
started this conversation in
Artillery
Replies: 2 comments
-
I've changed my variable input around to match the docs too: variables: no luck. indentation looks correct. I'd love to check, but I don't think a yaml prettier extends to the graphql query inside of it. I used an online graphql formatter. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I played with the query and variables enough, it was just formatting and indentation. I'm not sure what combination worked but I got it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone. Here's my graphQLtest.yml:
And my my-functions.js:
I'm getting 200 OK messages back so it looks like my test is running, but it's just that graphql responds with 200 regardless. What's actually printing out is:
{"errors":[{"message":"Parse error on "availableOffers" (IDENTIFIER) at [1, 1]","locations":[{"line":1,"column":1}]}]}
and I see in my debug statement that it's printing out the json response with just all keys and no values. This doesn't look like any of the other issues I've had load testing a graphql statement, it looks like some sort of syntax error I must be passing. Google and SO don't seem to be of help, can anyone point me in the right direction?
Beta Was this translation helpful? Give feedback.
All reactions