{"ref":"content:don-t-let-it-crash-is-this-the-new-cap-guideline","page":"/content/don-t-let-it-crash-is-this-the-new-cap-guideline","json":"/content/don-t-let-it-crash-is-this-the-new-cap-guideline.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"don-t-let-it-crash-is-this-the-new-cap-guideline","title":"Don't \"let it crash\", is this the new CAP guideline?","url":"https://community.sap.com/t5/technology-blog-posts-by-members/don-t-quot-let-it-crash-quot-is-this-the-new-cap-guideline/ba-p/13856633","content_type":"blog","published_on":"source:sap-community","explains":[{"ref":"capability:error-handling","applies_to":{"ecosystems":["cap"]}},"artifact:sap-cds"],"summary":"Dinu traces a change in error handling in CAP's [Node.js](external:nodejs) runtime: [@sap/cds](artifact:sap-cds)@8.2.0 adds a `cds.server.shutdown_on_uncaught_errors` config flag, defaulting to true, but invoking an operation with an undefined variable no longer takes the server down, with or without the flag, where the same code crashed it on cds@6 and cds@7, and the author notes the old behaviour was already missing in cds@8.1. It still crashes with `features.odata_new_adapter` turned off to use the old OData parser, so it is the new OData adapter, like the REST adapter before it, that answers an uncaught error with a 500 instead of taking the process down.","short":"Change in uncaught error handling in @sap/cds 8.2.0","author":"Dinu","published":"2024-09-06","against":[{"ref":"ecosystem:cap","version":"8.2"}],"provenance":{"discovered_via":[{"source":"source:sap-community","channel":"cap-tag"}],"first_seen":"2026-10-09"},"drafted_with_ai":true},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"fair","evidence":"published 25 months ago"}],"compatibility":[{"label":"Version","tier":"poor","evidence":"cds 8, line ended"},{"label":"Moved since?","tier":"poor","evidence":"@sap/cds 9.0, 10.0 since publication"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":1612,"unit":"views"},{"value":2,"unit":"comments"},{"value":3,"unit":"likes"}]},"signals":{"views":1612,"likes":3,"comments":2,"metrics_at":"2026-10-25"},"series":null,"edges":{"authors":[]}}