on 2022 Jul 08 2:46 PM
Hi Expert,
I created an application with SAP CAP(Cloud Application Programing) in the SAP BTP Cloud Foundry environment. When the invalid parameters are passed to API, the application will generate a run-time error, which causes the service instance to crash. I can update the application to capture the errors that happened. But is there any way to prevent the instance crash even if the app has a run-time error? This is a multi-tenant app, one consumer's incorrect operation should not impact other consumers. Any thoughts or suggestions are greatly appreciated!
Nodejs version: 14.17.6
CDS version: 5.4.5
Hi Jim,
You should capture the error in your custom handler. The runtime behavior follows the "Let it crash" pattern: https://cap.cloud.sap/docs/node.js/best-practices#error-handling
Best regards,
Vitaly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.