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

173
Views
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
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!