Skip to content

Commit

Permalink
Merge pull request #92 from brenobaptista/AUEML-1761
Browse files Browse the repository at this point in the history
Fix json request body panic in gateways
  • Loading branch information
TheRafaBonin authored May 23, 2024
2 parents c007c22 + e8e5244 commit 6891aaa
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 6891aaa

Please sign in to comment.