Closed sasneutrino closed 6 years ago
@sasneutrino Looking at the source code there is a place in _submit
function where it checks for error and if there is error it is logged - which is probably what you see as the line starting with { [Error: read ECONNRESET] ...
- but even if there is an error it still calls another function setup_response_handler
- see:
The setup_response_handler
doesn't check if the res
is undefined (which it will be if there was an error in _submit
above. See:
It seems that this is a problem.
@RexMorgan is this project alive? This issue has been open for half a year.
@rsp Thanks for doing the deep dive on this and figuring out what the issue was. I had glanced over the code awhile back trying to see why this was happening and didn't notice this.
This is fixed and published to npm in version 0.4.5.
PRs are welcome if you find other things that could use improvement. I'm not actively working on this or even working in node at the moment. I work on this when I get the time.
This what I get sometimes, not always, I don't understand why.