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

More elaborate error reporting for calls from graphql-mesh #1395

Open
hnsr opened this issue Apr 13, 2022 · 1 comment
Open

More elaborate error reporting for calls from graphql-mesh #1395

hnsr opened this issue Apr 13, 2022 · 1 comment

Comments

@hnsr
Copy link
Contributor

hnsr commented Apr 13, 2022

Describe the feature you'd like to request

We sometimes run into errors with calls made through graphql-mesh to external APIs. The current error reporting is not very verbose and I'd like more info on the exact call that errored

Describe the solution you'd like

An option to control verbosity of error logging for external API calls. It would be useful to see the API endpoint, HTTP error code, request body, request response and such

Describe alternatives you've considered

N/a

@paales
Copy link
Member

paales commented Apr 13, 2022

We'll probably switch to https://github.com/dotansimha/graphql-yoga for the build in GraphQL server, which as support for envelop plugins like https://www.envelop.dev/docs/guides/monitoring-and-tracing which might help this usecase.

We might be able to write up an error handler that just outputs to stderr with the information.

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

No branches or pull requests

3 participants