0

Node.js ECONNRESET

Hey guys, I want to ask if anyone knows what cause the problem.

System: Raspberry Pi OS Database: mariaDB

Rest-API is based on node.js with express and other dependicies.

Thanks

Destry LP
  • 1
  • 1
  • How long after the successful connection? – FanoFN Oct 14 '21 at 06:14
  • I will try the solution with server.timeout(0); How long? I do not know the exact time yet. I guess around midnight. – Destry LP Oct 14 '21 at 08:26
  • Since this is also probably related to MySQL own timeout setting, you may try using `createPool` as well. Here's a reference https://stackoverflow.com/a/37326025/10910692 – FanoFN Oct 14 '21 at 08:38
  • I will try it. Can take some time. To be more exactly I use mariadb – Destry LP Oct 14 '21 at 09:16
  • UPDATE: It does not only happen at midnight. I restarted the Raspberry PI and I will look – Destry LP Oct 14 '21 at 15:23
  • [Please do not post images of code, error messages or data when asking a question](//meta.stackoverflow.com/q/285551) – djones Oct 15 '21 at 22:45

0 Answers0