graphcommerce icon indicating copy to clipboard operation
graphcommerce copied to clipboard

More elaborate error reporting for calls from graphql-mesh

Open hnsr opened this issue 2 years ago • 1 comments

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

hnsr avatar Apr 13 '22 07:04 hnsr

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.

paales avatar Apr 13 '22 09:04 paales