Skip to content
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

Make router service call failed a more specific/helpful error #4899

Closed
andrewmcgivery opened this issue Apr 3, 2024 · 0 comments · Fixed by #4900
Closed

Make router service call failed a more specific/helpful error #4899

andrewmcgivery opened this issue Apr 3, 2024 · 0 comments · Fixed by #4900
Assignees

Comments

@andrewmcgivery
Copy link
Contributor

Describe the solution you'd like
Router currently throws the error router service call failed when major something goes wrong. The instances I've seen it in are when a coprocessor is broken or not deployed. The error in it's current form is unhelpful and would be nice if it tried to specify what went wrong (some kind of more specific error).

Currently thrown from two places in the code:

https://github.com/apollographql/router/blob/dev/apollo-router/src/axum_factory/axum_http_server_factory.rs#L650
https://github.com/apollographql/router/blob/dev/apollo-router/src/axum_factory/axum_http_server_factory.rs#L683

@garypen garypen self-assigned this Apr 3, 2024
garypen added a commit that referenced this issue Apr 3, 2024
It can be difficult to understand 'router service call failed' messages.
Adding the error detail should make them more comprehensible.

fixes: #4899
garypen added a commit that referenced this issue Apr 4, 2024
It can be difficult to understand 'router service call failed' messages.
Adding the error detail should make them more comprehensible.

fixes: #4899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants