You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fiber will mask any internal error in fasthttp with a BadRequest response. This was a pain to debug, even with stack traces the original error won't popup. The only I could find the error was to modify fiber to drop the err = ErrBadRequest overwrite in server.go to let the original fasthttp error to land on my ErrorHandler
Would be nice to at least wrap the original error in order to get the reason why something is failing.
How to Reproduce
Steps to reproduce the behavior:
Build a file uploader without streaming, build it inside a scratch container, and try to read the multipart file.
The error will be masked with a Bad Request (in this case it was a missing /tmp folder inside the scratch containerin which fasthttp couldn't write/read from)
Expected Behavior
Be able to view original error reasons when they happen
Thanks for opening your first issue here! 馃帀 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord
Bug Description
Fiber will mask any internal error in fasthttp with a BadRequest response. This was a pain to debug, even with stack traces the original error won't popup. The only I could find the error was to modify fiber to drop the
err = ErrBadRequest
overwrite in server.go to let the original fasthttp error to land on my ErrorHandlerWould be nice to at least wrap the original error in order to get the reason why something is failing.
How to Reproduce
Steps to reproduce the behavior:
Build a file uploader without streaming, build it inside a
scratch
container, and try to read the multipart file.The error will be masked with a Bad Request (in this case it was a missing /tmp folder inside the scratch containerin which fasthttp couldn't write/read from)
Expected Behavior
Be able to view original error reasons when they happen
Fiber Version
v2.40.1
Code Snippet (optional)
No response
Checklist:
The text was updated successfully, but these errors were encountered: