Answer the question
In order to leave comments, you need to log in
How to fix ECONNRESET when downloading file from server?
Hello, I'm trying to upload a file from the server, and I get ECONNRESET. The file weighs 800mb. Sometimes it loads up to 400 mb and sometimes up to 100 mb, and I get ECONNRESET. You may need to add additional parameters, etc. Or use another method. The code itself:
const sendRequest = request.get({url: url, pool: {maxSockets: 3}})
Answer the question
In order to leave comments, you need to log in
Try uploading in parts using an additional header
https://developer.mozilla.org/en-US/docs/Web/HTTP/...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question