Is there a issue with the server. I have a server timeout error message on 2 of my apps. This seems to happen when I don’t go on the apps for a few days. Do I need a persistent server connection or is it something else.
Unless you’re self-hosting, there is a default timeout of 30 seconds for server calls. If any server call you make from your app takes more than 30 seconds then you will get this error.
Essentially, you’d have to see which parts of your code are taking so long and try to optimize them.
A persistent server MIGHT help depending on the underlying cause of the lengthy server calls. E.g., if the imports are taking a lot of time then a persistent server can help because those imports would not have to be executed each time.
However, you’d first have to diagnose what causes those timeouts in the first place. Background tasks can also help with slower-running code as those do not have a timeout limit on any of the paid plans.
2 Likes