Why am I getting SQLiteCloudError: Connection error with ECONNRESET during initial connection? #71
-
Hi, I’m using the @sqlitecloud/drivers Node.js driver to connect to my SQLiteCloud database. When starting my server, I see this error repeatedly: My connection string looks like this: const db = new Database('sqlitecloud://myhost.g4.sqlite.cloud:8860/database.sqlite?apikey=MY_API_KEY&connectTimeout=5000&socketTimeout=60000'); I also tried wrapping my connection logic with a retry mechanism, but still see frequent ECONNRESET errors. Questions: Any insight would be appreciated — thanks in advance! --- error message -- 2025-07-03 10:50:29 Server is running on port 3000 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This error is usually generated by the server (the database node) which brutally closes the connection. I want to check on your node if there are any issues. Can you please contact us from your project on the Dashboard? You can find the button on the top right of the page. |
Beta Was this translation helpful? Give feedback.
This error is usually generated by the server (the database node) which brutally closes the connection. I want to check on your node if there are any issues. Can you please contact us from your project on the Dashboard? You can find the button on the top right of the page.
Your firewall as well can interfere with the TCP connection.
We recommend to open a new
Database
connection to the node for every single request to your server and close it to the end.