We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there, thanks for building this!
This middleware works as expected, the only issue I'm experiencing is that the request body is written as part of the middleware func:
ctx.String(http.StatusRequestEntityTooLarge, "request too large")
I'm trying to build an API where every response is JSON- even errors like this. What do you suggest? My response body ends up looking like:
request too large{"error":"HTTP request too large"}
Thanks in advance.
The text was updated successfully, but these errors were encountered:
I have the same problem.
Sorry, something went wrong.
if err != nil { s.Logger.Warn(err) if c.IsAborted() { return } c.AbortWithStatusJSON(http.StatusBadRequest, controllers.Error{ Code: fmt.Sprint(http.StatusBadRequest), Message: err.Error(), }) return }
No branches or pull requests
Hi there, thanks for building this!
This middleware works as expected, the only issue I'm experiencing is that the request body is written as part of the middleware func:
I'm trying to build an API where every response is JSON- even errors like this. What do you suggest? My response body ends up looking like:
Thanks in advance.
The text was updated successfully, but these errors were encountered: