#4358·loopback

Loopback 4 keep alive when datasource error

Author: apV2VCreated Nov 23, 2022Updated Nov 23, 2022
Labelsquestion

Hello,

I use Loopback 4 framework in my app service. In my app service I have a principal datasource and 2 more external datasources(SQL server). Sometimes the external datasources are not available and the app service crash when called an endpoint that use there. I cannot control when datasource are available or not.

All datasources have the property "lazyConnect", but this property don't works to this situation.

Is there a way to prevent the appservice crashing when this happens?

Thanks