Skip to content

Commit

Permalink
Fix json request body panic in gateways
Browse files Browse the repository at this point in the history
  • Loading branch information
brenobaptista committed May 23, 2024
1 parent c007c22 commit e8e5244
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/graphql/errorPresenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func errorPresenter(ctx context.Context, err error) *gqlerror.Error {
if errors.Is(err, io.ErrUnexpectedEOF) || strings.Contains(err.Error(), "unexpected EOF") {
lvl = zerolog.ErrorLevel
}
if strings.Contains(err.Error(), "could not get json request body") {
lvl = zerolog.ErrorLevel
}

var query string
logger := log.Ctx(ctx).With().Stack().Logger()
Expand Down

0 comments on commit e8e5244

Please sign in to comment.