question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"message": "Unknown operation named \"undefined\"."

See original GitHub issue

I’m testing / debugging resolvers using GraphiQL. At times, seemingly prompted by restarting the backend app, I’ll start getting responses like this:

{
  "errors": [
    {
      "message": "Unknown operation named \"undefined\"."
    }
  ]
}

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:31
  • Comments:25 (10 by maintainers)

github_iconTop GitHub Comments

5reactions
apoberezcommented, Feb 8, 2018

Hello, same issue using this tutorial http://docs.graphene-python.org/projects/sqlalchemy/en/latest/tutorial/ sorry if off-topic

5reactions
leebyroncommented, Jan 10, 2017

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 undefined results in getting "undefined".

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does the "operation name" reference? - Stack Overflow
When they have operation names they can be listed when you click the play / run button. enter image description here.
Read more >
"message": "Unknown operation named \"undefined\"."
I'm testing / debugging resolvers using GraphiQL. At times, seemingly prompted by restarting the backend app, I'll start getting responses ...
Read more >
Error handling - Apollo GraphQL Docs
This occurs when a request containing multiple named operations doesn't specify which operation to run (i.e., operationName ), or if the named operation...
Read more >
Troubleshooting and Common Mistakes - AWS AppSync
If your GraphQL operation returns the following error message, it may be because your request mapping template structure doesn't match the Amazon DynamoDB ......
Read more >
2 Server Error Message Reference - MySQL :: Developer Zone
Message : Unknown column '%s' in '%s' ... Message: Undefined CONDITION: %s ... The named object is incorrect for the type of operation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found