Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

183
Vistas
Don't receive whole file while streaming from different machines servers?

I have two different servers running on different machines and one server sending a .tar file to another, but I am not receiving the whole file only get one chunk of data.

Server 1 : Headers from the server I am sending the file :

File sender server headers

Server 2 : Code where I am receiving that file through API

import fs from "fs";
 this.post("/webhook",
 async (req, res) => {
   req.pipe(fs.createWriteStream(`./default.tar.gz`));
   req.on("end", () => {
     // have to update in db that file has been saved
   });
})

Problem: If I run both servers on different machine stream doesn't work and only send one chunk of data however if I run both servers on the same machine it works perfectly fine.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda