question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 9 years ago
  • Reactions:2
  • Comments:52 (11 by maintainers)

github_iconTop GitHub Comments

11reactions
Amit-Acommented, Mar 3, 2019

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.

9reactions
nicholasstephancommented, Nov 28, 2017

I’m trying to use formidable in a firebase function, and am getting this error for every request.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found