Next.js API route hangs (stays in pending state) when multer encounters a validation error #78589
Unanswered
abdullah-manafikhi
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Using multer for file uploads in a Next.js API route with bodyParser: false
When multer validation fails, the API call gets stuck in a pending state
The server logs show errors being caught, but responses aren't making it back to the client
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions