You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I want to express my appreciation for the excellent work you've done with HotChocolate. It has been a reliable tool for parsing GraphQL in our projects.
Recently, while troubleshooting an error encountered by one of our integration partners, I noticed something that may be worth looking into. The error message was as follows: Expected a 'Colon'-token, but found a 'String'-token. At first glance, I assumed there might be an issue with the GraphQL code provided by our partner. However, it took some time to reproduce and identify the source of the problem.
Upon investigation, I discovered that the error occurs when the operationName is left empty in a request. Here's an example of the failing request:
While I understand that operationName should probably not be empty, the error message initially misled me, leading to several hours of troubleshooting before pinpointing the issue. I've advised our partner to always provide a valid operationName, and we've resolved our issue.
I wanted to bring this to your attention in case it's an area that could be improved or clarified in future updates. Thank you for your continued support and dedication to improving HotChocolate!
The solution you'd like
The error message if OperationName is empty is changed to something like:
OperationName must not be empty
The text was updated successfully, but these errors were encountered:
Product
Hot Chocolate
Is your feature request related to a problem?
Hello,
First, I want to express my appreciation for the excellent work you've done with HotChocolate. It has been a reliable tool for parsing GraphQL in our projects.
Recently, while troubleshooting an error encountered by one of our integration partners, I noticed something that may be worth looking into. The error message was as follows:
Expected a 'Colon'-token, but found a 'String'-token.
At first glance, I assumed there might be an issue with the GraphQL code provided by our partner. However, it took some time to reproduce and identify the source of the problem.Upon investigation, I discovered that the error occurs when the
operationName
is left empty in a request. Here's an example of the failing request:In contrast, the following request succeeds:
While I understand that
operationName
should probably not be empty, the error message initially misled me, leading to several hours of troubleshooting before pinpointing the issue. I've advised our partner to always provide a validoperationName
, and we've resolved our issue.I wanted to bring this to your attention in case it's an area that could be improved or clarified in future updates. Thank you for your continued support and dedication to improving HotChocolate!
The solution you'd like
The error message if OperationName is empty is changed to something like:
The text was updated successfully, but these errors were encountered: