Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

142
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda