-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
"message": "Unknown operation named \"undefined\"." #234
Comments
Thanks for submitting the report, @Shongololo. However, I think we might need a more concrete repro recipe. I know this might be hard, if the issue is intermittent; do you see it on every backend restart? Can you provide a little more detail about what versions you are running and how? |
Even i facing this issue while calling mutations on my sample project. Sharing few details :- Mutation Query
Schema.js
Mock data
|
This happens when Are there some steps we can follow to reproduce the issue? |
I'm not exactly sure what the root issue is, but I think this is due to saving state between runs. localStorage coerces everything to a String before saving it, so setting |
localStorage coerces everything to a String before saving it, so setting undefined results in getting "undefined". This change causes falsey values to be removed rather than being string coerced. It also introduces a fix to dirty storage from this issue. Fixes #234
I still hit this issue when using unnamed queries/mutations/subscriptions. The issue arises when entering a query, like: mutation {
someMutation(input: {
clientMutationId: ""
}) {
clientMutationId
}
} If one enters this query, and executes it - everything works as intended. From here, a second reload will yield the error. If doing the exact same query but naming the operation, like this: mutation MyMutation {
someMutation(input: {
clientMutationId: ""
}) {
clientMutationId
}
} Then no error occours. EDIT: This is GraphIQL 0.10.1 |
Just confirming that I'm having the same problem @kastermester mentioned here. It's pretty annoying and really easy to reproduce, you just need to: run a unnamed mutation, refresh the page and run it again. I'm using the graphiql that graphql-server-express renders, which seems to be at 0.10.2. |
I run into this from time to time as well. @leebyron is definitely correct that the string My suspicion is that the latter (the search param) is the real culprit here, as simply deleting it resolves the issue, even though |
I have the same problem, how long would it take to fix this on your side? Are you working on it? |
This is weird - after v0.10.0 release that includes the fix for the race condition in updating I can reproduce this issue when I explicitly put @Durisvk @mairatma @kastermester Were you guys able to repro this issue from the example app in GraphiQL? Is there a different setup for you guys? |
@asiandrummer You need to propagate this change to |
Just confirming that in my case this happens through |
Got it - closing this issue here, opening/fixing in |
I have the same issue here and I am not using |
@Durisvk Doesn't |
@asiandrummer That's the implementation detail I didn't study so I don't know, but I think they are using
|
@Durisvk |
Hello, same issue using this tutorial http://docs.graphene-python.org/projects/sqlalchemy/en/latest/tutorial/ |
@apoberez Any solution you found? I'm facing the same issue while following tutorial at http://docs.graphene-python.org/projects/django/en/latest/tutorial-plain/#getting-relations |
Just hitting F5 reproduces this error. |
For graphene-python users who can afford patching the python lib for development process, there is a simple solution:
|
This is happening to me too. Indeed, cutting and pasting the query fixes it! I'm using graphene-python with flask-graphql. GraphiQL is built in to flask-graphql. |
seems your implementation might be running an outdated version of GraphiQL. can you confirm which version you are using? Do you have any more information about your particular implementation? |
I am using |
@Hubro ah ok I see, yeah it's lockewd. I can open a PR to upgrade and improve the implementation a bit, but that would be up to the maintianer, unless pip allows you to install from my fork. I'd love to make sure flask users have an up-to-date implementation! |
@acao I just opened an issue about it now... :P graphql-python/flask-graphql#75 A pull request would be neat! |
I'm testing / debugging resolvers using GraphiQL. At times, seemingly prompted by restarting the backend app, I'll start getting responses like this:
Restarting the app or refreshing the GraphiQL page do not fix the error. However, cutting the query and pasting it back into the query window seems to resolve the issue.
Thanks.
The text was updated successfully, but these errors were encountered: