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

Variables are invalid JSON with GET request - regression #52

Closed
feri42 opened this issue Feb 3, 2017 · 0 comments · Fixed by #60
Closed

Variables are invalid JSON with GET request - regression #52

feri42 opened this issue Feb 3, 2017 · 0 comments · Fixed by #60

Comments

@feri42
Copy link

feri42 commented Feb 3, 2017

When sending a GET request (app version 1.4.15), the app reports:
{
"message": "Variables are invalid JSON.",
"name": "BadRequestError",
"stack": "BadRequestError: Variables are invalid JSON.\n at parseGraphQLParams (/Users/feri/Projects/IOW/IOW/app/node_modules/express-graphql/dist/index.js:254:38)\n at /Users/feri/Projects/IOW/IOW/app/node_modules/express-graphql/dist/index.js:234:12\n at process._tickCallback (internal/process/next_tick.js:103:7)"
}

For query variables:
{
"vatId": "12345678"
}

Sending a POST request works as expected. The GET request also works in version 0.4.2.

jeroenbe added a commit to jeroenbe/graphiql-app that referenced this issue May 16, 2017
@skevy skevy closed this as completed in #60 Jun 17, 2017
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

Successfully merging a pull request may close this issue.

1 participant