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)
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 ...
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 ...
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 ...
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.
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 ...
2019年10月15日 ... Error: read ECONNRESET at TCP.onStreamRead (internal/ stream_base_commons.js:111:27) Emitted 'error' event at: at Socket.
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 ...
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 ...