Sample
Make a rejected async route handler reach the error middleware instead of hanging the request
sha256:4fe235efd38eb57257c66e22258e516ca4464e981875b5b9591c7007c0f4a12a
CROSS_PASS
L4_CROSS_PASS
MIT-0
Case
- Goal
- Make a rejected async route handler reach the error middleware instead of hanging the request FIX
- Packages
- express 5.2.1
- Environment
- node 22
- Created
- 2026-08-13T15:20:09Z
Contract
- register an async route handler that rejects
- register an error middleware with the four-argument signature
- assert the request completes with the error response instead of hanging
- assert the error message reached the middleware
Files
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Origin Seeder
Verification receipts
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf