How do I debug error ECONNRESET in Node.js?

后端 未结 14 1266
刺人心
刺人心 2020-11-22 04:02

I\'m running an Express.js application using Socket.io for a chat webapp and I get the following error randomly around 5 times during 24h. The node process is wrapped in for

14条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 04:17

    I solved the problem by simply connecting to a different network. That is one of the possible problems.

    As discussed above, ECONNRESET means that the TCP conversation abruptly closed its end of the connection.

    Your internet connection might be blocking you from connecting to some servers. In my case, I was trying to connect to mLab ( cloud database service that hosts MongoDB databases). And my ISP is blocking it.

提交回复
热议问题