Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
fs.createWriteStream stalls

I am using the npm package busboy to parse a multipart form request and a write stream to write the sent file to disc.

This works fine with small files, but when I try with a larger file (7MB) it seems that only about 5MB is written to disc and then it seems that things stall and it never finishes and no error is thrown. This works locally but when running on ECS is where the problem occurs.

The node server is running in a docker container on ECS

  pipeline(fileStream, fs.createWriteStream(filePath), (err) => {
    if (err) {
      console.log("Pipeline failed", err);
    } else {
      console.log("Pipleline complete");
    }
  });

Any ideas??

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I recently solved this by finding the HTTP status codes that were "behind the scenes" by enabling access logging. In my case it was a 413 status code.

There's several steps to set this up, and it changes from time to time. Check the docs here for the current steps & config: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-access-logs.html#enable-access-logging

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!