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
I noticed a behavioral change in GraphQL version 2.4.9. I would like to confirm if this is an intended change in specification or if it's a potential bug.
Previous Behavior (2.4.8): Exceptions were caught directly by rescue_from blocks as defined in the schema.
Current Behavior (2.4.9): Exceptions are now wrapped in GraphQL::Backtrace::TracedError, preventing rescue_from from catching them as expected.
Hey, thanks for reporting this and sorry for the trouble! Yes, I agree that I probably introduced it in #5217. I think your proposed solution sounds good. If you'd like to implement it, please give it a try. Otherwise, I'll take a look soon and follow up here 👍
Describe the bug
I noticed a behavioral change in GraphQL version 2.4.9. I would like to confirm if this is an intended change in specification or if it's a potential bug.
Versions
graphql
version: 2.4.9graphql-c_parser
version: 1.1.2GraphQL schema
GraphQL query
Example GraphQL query and response (if query execution is involved)
Click to view response
Expected behavior
I would like to request that unhandled errors (not defined in
rescue_from
) should be wrapped inGraphQL::Backtrace::TracedError
.Actual behavior
Click to view exception backtrace
Additional context
The behavior change appears to be related to the modifications in PR #5217.
Proposed Error Handling Flow
I would like to request the following error handling behavior:
Execution::Errors
Execution::Errors
GraphQL::Backtrace::TracedError
This would provide consistent error handling while maintaining the backtrace functionality when enabled.
The text was updated successfully, but these errors were encountered: