-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
GraphQL Logout mutation w/o X-Parse-Session-Token
header causes internal server error
#7027
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
Comments
Thank you for reporting. @Moumouls @davimacedo Do you have any suggestion for this GraphQL related issue? |
Yes it seems that we need to remove @MichaelJCole the quick patch is: mutation logOutButton {
logOut(input: { clientMutationId: "logOut" }) {
clientMutationId
}
} I will send a PR to remove viewer from logout mutation |
PR sent: #7029 |
@Moumouls did you try that patch? I tested it in the Playground, and got the same "Error: Internal server error". Anyways, thanks for the fast PR! |
Yeah after my comment I saw in the code that my patch may be not work on the current version. (logOut code always try to get viewer) In fact, your only option might be to make sure you have a session token when you call the LogOut @MichaelJCole |
New Issue Checklist
Issue Description
Performing the logout mutation from the documentation, without a session set in the headers, causes the following internal server error:
The throwing code seems to be here.
Steps to reproduce
Actual Outcome
Error message above
Expected Outcome
Logging out, without a session token should 400, or return empty user data. I don't think it should log or print a stack trace.
Environment
Server side:
"resolutions": {
"graphql": "^14.7.0"
},
"dependencies": {
"dotenv": "^8.2.0",
"express": "^4.17.1",
"graphql": "^14.7.0",
"graphql-tag": "^2.11.0",
"nodemon": "^2.0.6",
"parse-server": "^4.4.0"
}
Server
4.4.0
Ubuntu 20.04
Local
Database
MongoDB
mongodb-runner start
Local
Client
JavaScript
https://apollo.vuejs.org/
Logs
See error above. VERBOSE=1 didn't show more stuff.
Thank you!
The text was updated successfully, but these errors were encountered: