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

6
  • How long after the successful connection? Commented Oct 14, 2021 at 6:14
  • I will try the solution with server.timeout(0); How long? I do not know the exact time yet. I guess around midnight. Commented Oct 14, 2021 at 8:26
  • Since this is also probably related to MySQL own timeout setting, you may try using createPool as well. Here's a reference stackoverflow.com/a/37326025/10910692 Commented Oct 14, 2021 at 8:38
  • I will try it. Can take some time. To be more exactly I use mariadb Commented Oct 14, 2021 at 9:16
  • UPDATE: It does not only happen at midnight. I restarted the Raspberry PI and I will look Commented Oct 14, 2021 at 15:23

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.