New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: read ECONNRESET #147
Comments
You have two issues you have to look at separately:
rp.get('http://xxxx/get/' + lists[i])
.then((d) => {
execFunc(i + 1);
})
.catch((err) => {
// Handle the error here
}); Hope this helps! |
Hi @Gcaufy , I think it is safe to close this issue now. Let me know if you have more questions. |
Sorry, forget to close this issue. Seems I had fixed it, but I don't remember how. -.-! |
No problem. :) |
For people who stumble upon this issue looking for a solution, try adding the |
@Anaphase adding |
¯\_(ツ)_/¯ could be any number of issues, try your luck on stack overflow? |
I did, but could find anything that worked... At the end that was just an issue on my local environment (mac), when it was up on the server (Ubuntu) everything worked fine. |
I am also getting the above issue. please anybody can help me how they solved it? |
Just to add to @analog-nico's answer: rp.get('http://xxxx/get/' + lists[i])
.then((d) => {
execFunc(i + 1);
})
.catch((err) => {
if(err.message === 'read ECONNRESET'){
// wait and rerun, or handle connection and rerun
} else {
throw err;
}
}); |
This issue was in my case caused by this missing request option: |
I had the same error. The cause for me was over-aggressive scraping of a site, hitting it with too many requests in a short space of time. |
@mitchmike and @cybairfly thank you very much for your response! It took me hours to find a solution! |
I found that the solution for me was including headers.
|
I have a the code like this.
and I get the error:
No idea what's wrong with it.
The text was updated successfully, but these errors were encountered: