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
When using a GraphQL gateway to schema stitch GraphQL µservices, the error messages thrown by the µservices should bubble up to the gateway and should be presented unaltered.
Actual outcome
A generic INTERNAL_SERVER_ERROR error code is displayed to the gateway client along with a message containing an `[object Object] which cannot be extracted. The µservice throws the correct error.
Stitch two schemas together. Force one to throw a specific error (AutenticationError, etc). Observe response from the Apollo Server that stitched the schemas.
Potential fix
Move to graphql-tools@next (5.0.0-rc.0). Here is the ongoing discussion.
The text was updated successfully, but these errors were encountered:
Intended outcome
When using a GraphQL gateway to schema stitch GraphQL µservices, the error messages thrown by the µservices should bubble up to the gateway and should be presented unaltered.
Actual outcome
A generic
INTERNAL_SERVER_ERROR
error code is displayed to the gateway client along with a message containing an `[object Object] which cannot be extracted. The µservice throws the correct error.µservice error:
gateway error:
How to reproduce the issue
Stitch two schemas together. Force one to throw a specific error (
AutenticationError
, etc). Observe response from the Apollo Server that stitched the schemas.Potential fix
Move to
graphql-tools@next (5.0.0-rc.0)
. Here is the ongoing discussion.The text was updated successfully, but these errors were encountered: