-
Notifications
You must be signed in to change notification settings - Fork 59
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
error data from binding is not available #213
Comments
@terion-name I believe this is a duplicate of #173. Please review other issues next time before submitting new ones. If you believe this is not related to the referenced issue, please reopen this issue and provide a reproduction Github repository or CodeSandbox, whichever works best for you. 🙂 |
@maticzav no, it is not a duplicate, read carefully please. I don't get [Object object], I get a proper error with proper message string. My issue that error from delegator does not contain additional arbitrary data that is included in error payload by underlying service and what is allowed by graphql spec as far as I am concerned. This kind of errors that we use specifically is Apollo errors standart (https://www.npmjs.com/package/apollo-errors). And this looks like a design flaw, because I get only those data pieces that are in generic And no, I can't reopen issues in this repo |
Hey @terion-name, yes, you are getting a proper error because you are logging it and #173 gets If you still believe this issue should be treated differently from the referenced one, please provide a thorough reproduction repository as mentioned above. Thanks 🙂 |
@maticzav it has nothing to do with that issue and has nothing to do with handling it in graphql renderer! just read what am I writing about and what the issue is about! |
this issue and the other are different symptoms of the same bug in the underlying graphql-tools. The way graphql tools decorates and forwards errors seems to miss out on some properties. @terion-name |
I run a mutation. Underlying service returns error with data:
But here I get the following:
Thus, error data from underlying service is not available. How can I get it?
The text was updated successfully, but these errors were encountered: