A simple tcp server I had for serving the flash policy file was causing this. I can now catch the error using a handler:

# serving the flash policy file
net = require("net")

net.createServer((socket) =>
  //just added
  socket.on("error", (err) =>
    console.log("Caught flash policy server socket error: ")
    console.log(err.stack)
  )

  socket.write("<?xml version=\"1.0\"?>\n")
  socket.write("<!DOCTYPE cross-domain-policy SYSTEM \"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd\">\n")
  socket.write("<cross-domain-policy>\n")
  socket.write("<allow-access-from domain=\"*\" to-ports=\"*\"/>\n")
  socket.write("</cross-domain-policy>\n")
  socket.end()
).listen(843)

How do I debug error ECONNRESET in Node.js? - Stack Overflow

https://stackoverflow.com/questions/17245881/how-do-i-debug-error-econnreset-in-node-js

But one thing's for sure: you indeed have a read error on your TCP connection which causes the exception. You can see that by looking at the ...

Error: read ECONNRESET · Issue #147 · request/request-promise ...

https://github.com/request/request-promise/issues/147

Aug 20, 2016 ... Error: read ECONNRESET is the primary cause and says that your connection/ request got cancelled on the TCP/IP level. This may have many ...

ConnectionError: Connection lost - read ECONNRESET (Node.JS ...

https://docs.microsoft.com/answers/questions/61020/connectionerror-connection-lost-read-econnreset-no.html

Aug 6, 2020 ... JS Error). This is a node.js application im running on my local PC not on any azure service, However i am connecting to an azure mssql ...

REST API Error: read ECONNRESET - Marketing Nation

https://nation.marketo.com/t5/product-discussions/rest-api-error-read-econnreset/td-p/208109

Jan 22, 2020 ... When trying to call the REST API associated to our subscription, we get the http error : Error: read ECONNRESET Everything seems configured.

What does “Error: read ECONNRESET” mean? - Quora

https://www.quora.com/What-does-%E2%80%9CError-read-ECONNRESET%E2%80%9D-mean

This error simply means that the other side closed the connection in a way that was probably not normal (or may be in a hurry). An example is: a socket ...

如何解决Keep-Alive 导致ECONNRESET 的问题- 知乎

https://zhuanlan.zhihu.com/p/86953757

2019年10月15日 ... Error: read ECONNRESET at TCP.onStreamRead (internal/ stream_base_commons.js:111:27) Emitted 'error' event at: at Socket.

Error "read ECONNRESET" displayed while running Postman ...

https://community.postman.com/t/error-read-econnreset-displayed-while-running-postman-collection-using-collection-runner/17179

Oct 28, 2020 ... I am running a simple Collection with API requests having Environment variables in endpoints and request body as well. Also, I have some test ...

Absolutely baffled why I am getting Error: read ECONNRESET when ...

https://teamtreehouse.com/community/absolutely-baffled-why-i-am-getting-error-read-econnreset-when-trying-a-simple-get-request

Dec 14, 2020 ... Error: read ECONNRESET is a problem in Node.js. There seesm to be something wrong yout TCP connection setup. Can you share a code ...