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

ItIsN3RD 6 Reputation points
2020-08-06T19:55:21.753+00:00

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 database. After like 45 minutes of my Node.js application running it keeps throwing this error:

events.js:292
throw er; // Unhandled 'error' event
^
ConnectionError: Connection lost - read ECONNRESET

Azure SQL Database
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anurag Sharma 17,571 Reputation points
    2020-08-07T04:59:08.317+00:00

    Hi @ItIsN3RD , looking at the nature of error, it looks its timeout issue in case of no activity. Please refer to similar thread posted:

    1. https://github.com/tediousjs/tedious/issues/923
    2. https://stackoverflow.com/questions/36423788/node-js-econnreset-error-when-running-on-azure
    3. https://github.com/microsoft/azure-devops-node-api/issues/292

    Also, if you re-run the application, do you still get the error?

    Meanwhile, is it possible for you to provide the code you are using?


  2. Dario 1 Reputation point
    2022-07-27T07:40:26.473+00:00

    Hi @AnuragSharma-MSFT Is there any movement on this?
    I am experiencing the same issue every ± 30 min of idle on my side

    0 comments No comments