ECONNRESET message after refresh a page with SC auto load after 6 minutes inactive

Wappler 6.5.4, Windows 11 Pro
NodeJS, DB remote MariaDB.

I get this error:

1. code: "ECONNRESET"
2. message: "select `tenant_id` from `my_tenant` where `my_tenant`.`user_id` = 'XXXxxxx-xXXXX-4cc3-88ce-xxxXXxxxxxxXX' - read ECONNRESET"
3. stack: "Error: read ECONNRESET\n at TCP.onStreamRead (node:internal/stream_base_commons:217:20)"
4. status: "500"

Steps to reproduce:

  • Create a server action with a database query (remote database), made the query simple.
  • Add the server action into a page as a server connect with auto load.
  • Open the page in browser, it should show correctly the data from the server connect in XHR tab.
  • Wait 6 minutes or more without interact with the page, it should be inactive.
  • After waiting, refresh the page and the SC added get the “ECONNRESET message”.

This is in console:
image

And this in Sources tab:
image

Topic moved out of bug reports, because this is not a Wappler bug (until proven otherwise).

ECONNRESET means the remote DB server closed the TCP connection (probably due to a timeout at 6 minutes). This means this “bug” is highly dependent on your network connection or remote server (depending on who closes the TCP connection).

You might want to try to play with the settings below: