Use formidable upload files, always get "Error Request Aborted"
See original GitHub issue- I use Express(3.6.0) + formidable(latest) for upload files to S3.
- When I submit post , then I always got
Error Request Aborted
. - incoming_form.js:
IncomingForm.prototype.parse = function(req, cb) {
.......
.......
.......
req
.on('aborted', function() {
self.emit('aborted');
self._error(new Error('Request aborted'));
})
.......
.......
.......
}
[Error: Request aborted]
child process: Request aborted
Error: Request aborted
at IncomingMessage.<anonymous>
(/node_modules/formidable/lib/incoming_form.js:107:19)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at abortIncoming (http.js:1911:11)
at Socket.serverSocketCloseListener (http.js:1923:5)
at Socket.EventEmitter.emit (events.js:117:20)
at TCP.close (net.js:465:12)
I want to know why I got aborted and how to debug it.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:2
- Comments:52 (11 by maintainers)
Top Results From Across the Web
Use node-formidable upload files, always get "Error Request ...
I use Express(3.6.0) + formidable(latest) for upload files to S3. When I submit post, I always got an Error Request Aborted .
Read more >Formidable - npm
A node.js module for parsing form data, especially file uploads. ... Start using formidable in your project by running `npm i formidable`.
Read more >Node.js Error: Request aborted in File upload formidable
I am using formidable module https://github.com/felixge/node-formidable to upload images. I created a separate new project & file upload works perfectly.
Read more >cbdiscord - server - node_modules - formidable - GitLab
Emitted when there is an error processing the incoming form. A request that experiences an error is automatically paused, you will have to...
Read more >The Express Handbook - The Valley of Code
The Express Handbook · 1. Introduction to Express · 2. Installation · 3. The first “Hello, World” example · 4. Request parameters ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just published formidable-serverless - it imports formidable as a dependency and modifies the handlers to support preprocessed request bodies (built-in to many serverless environments).
I’m using it in production with Firebase @BrodaNoel @brodwen83 @lborgman @nicholasstephan
The usage/API is exactly the same. Hope that helps.
I’m trying to use formidable in a firebase function, and am getting this error for every request.