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
Upon debugging we identified the following issue, where error is in "errorNormalize.ts" file where function enrichError has following condition which causes following error.
Error: "code" of undefined, where extensions does not exists on error.
I would recommend to either add graphqlError.extensions.code with graphqlError.extensions?.code or in ensureGraphQLError function add extensions if error does not has those fields.
That means this subclass is an incorrect subclass implementation for graphql@16: if the superclass guarantees that a field is always defined, the subclass should never set it to undefined.
I encourage you to file a bug with graphql-jit asking them to ensure that their GraphQLError subclass never creates errors that fail to fit the requirements of a graphql@16 GraphQLError.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
For general questions, we recommend using StackOverflow or our discord server.
Issue Description
While migrating from V3 to V4, we haven't changed any code in datasources as migration doc suggest no real changes are required.
Once we upgraded to V4, one of our resolvers throws an error(Normal HTTP error of timeout request). We started receiving following error.
Upon debugging we identified the following issue, where error is in "errorNormalize.ts" file where function enrichError has following condition which causes following error.
Error: "code" of undefined
, where extensions does not exists on error.I would recommend to either add
graphqlError.extensions.code
withgraphqlError.extensions?.code
or inensureGraphQLError
function add extensions if error does not has those fields.Link to Reproduction
https://codesandbox.io/p/sandbox/funny-haibt-s4r82s?file=%2Fsrc%2Findex.ts%3A34%2C14
Reproduction Steps
Note: Somehow above code is not working while it does work on my local machine and as explained in above description we are facing this issue.
The text was updated successfully, but these errors were encountered: