BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

Don't "let it crash", is this the new CAP guideline?

Dinu traces a change in error handling in CAP's Node.js runtime: @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.

Where it sits

Explains
Error handlingCAPError handlingcapabilityTurning a failure into a response a client can act on — protocol-correct error payloads, correlation, and a boundary between internal detail and what a caller sees.@sap/cdsCAP@sap/cdspackageThe CAP Node.js runtime, which compiles the CDS model, serves the services declared in it, answers generic requests before any handler runs, and loads every cds-plugin.
Since then
@sap/cds has been through 2 major lines since this was published: 9 (2025-06), 10 (2026-07)
Source
reachable

Who is behind it

Dinuauthor

Before you read it

ApplicabilityVersion driftcds 8, line ended

The piece names the version it was written against, and that line has since been crossed by a breaking one. The steps may need translating; nothing here says which.

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
1,612

For error-handling

on the edge
Applies in
authored
cap

More on this19

Group by19 of 19 pieces
Piece, what it offersStill applies
Also explainingError handling19
CAP: The Road Ahead - Simplicity in an AI Era
YouTube — SAP Developers playlists, SAP Developers
nothing recorded
Hello React & Vue : SAP CAP’s New UI Layer is Here!
SAP Community, Yogananda
nothing recorded
CAP Developers - Call to Action to mitigate and Apply Solution provided in SAP Note 3747787
SAP Community, Yogananda
nothing recorded
CAP, RAP, or Both: Stop Hiding Behind 'It Depends'
SAP Community, Walter Andres Aguero MachadoThe reasoning
nothing recorded
What's new in SAP Cloud Application Programming Model – January 2026
SAP Community, BirgitSThe reasoning
nothing recorded
CAP Heaven? Not Yet — But You Can See It from Here
SAP Community, Mattias JohanssonThe reasoning
nothing recorded
Declarative Programming in CAP: Less Code, More Value
SAP Community, BirgitSThe reasoning
nothing recorded
What's new in SAP Cloud Application Programming Model – November 2025
SAP Community, BirgitSThe reasoning
nothing recorded
What's new in SAP Cloud Application Programming Model – September 2025
SAP Community, BirgitSThe reasoning
nothing recorded
Effective Axios Error Logging for Robust SAP Integrations
SAP Community, Sahil2508The reasoningA recipe
nothing recorded
Beginners Guide to Advanced Event Mesh
SAP Community, PriyankaChak
nothing recorded
SAP CAPv7 - Node.js Highlights and Experiences
SAP Community, davidtill
nothing recorded
Messaging System for Transferring Error, Warning, and Information Messages from OData V4 Services to HTTP Client Applications
SAP Community, arley-triana-morinThe reasoningA recipeRunnable code
Core changed
Getting started with cds.ql in NodeJS for CAP - 101 on how to query data
SAP Community, leoirudayam
nothing recorded
SAP Cloud Application Programming Model(CAP):カスタムロジックの実装 – Part 2
SAP Community, rasai, part 2 of 2
nothing recorded
CAP is important because it's not important
SAP Community, DJ AdamsThe reasoning
nothing recorded
SAP Cloud Application Programming Model (CAP) - start here
SAP Community, DJ AdamsThe reasoning
nothing recorded
Everything new: Try out the latest features in CAP
SAP TechEd — session catalogue, Daniel Hutzel, Daniel SchlachterA recipe
nothing recorded
AI needs a foundation: A map of the plug-in ecosystem for CAP
SAP TechEd — session catalogue, Mike ZaschkaThe reasoning
nothing recorded

Details

Graph4 edges
POINTS OUT →
explainsError handlingcapability, core and community
explains@sap/cdsartifact
published onSAP Communitypublishing source
discovered viaSAP Communitycap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History1
  • Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
Ref
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
MCP
Connecting an agent