-
Notifications
You must be signed in to change notification settings - Fork 348
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
GraphQL Ktor plugin swallows context exceptions. #1920
Comments
### 📝 Description Currently, the Ktor version of the GraphQL server swallows a base exception, which disallows any custom error responses. This PR moves exception handling to [statuspages](https://ktor.io/docs/status-pages.html), which is the recommended error handler. Note: This is a breaking change for people relying on the current functionality to handle errors ### 🔗 Related Issues #1920 --------- Co-authored-by: c <[email protected]> Co-authored-by: Dariusz Kuc <[email protected]>
Hi, @smyrick or @dariuszkuc, any word on which release version this change will ship with? |
@curtiscook I am not a maintainer of the package anymore. You can reach out to the contact info provided in the repo Also it was indicated in the PR that the release would happen after graphql-java: #1936 (comment) |
Oops! Thanks, sorry I missed that |
Library Version
7.0.2
Describe the bug
When building a custom graphql context that throws an exception, the exception gets completely swallowed by the ktor graphql server plugin making it hard to figure out what the issue is.
To Reproduce
Make a custom context builder that throws an exception and visit the graphql endpoint. It will return a 400 bad request with no information anywhere.
Expected behavior
The exception should be thrown so that it can be handled by the ktor exception handler.
The text was updated successfully, but these errors were encountered: