Skip to main content

What it flags

An async Express 4 route handler awaits outside a try/catch and takes no next, so a rejection skips the error middleware and the request hangs. Silent on Express 5 and with express-async-errors, express-async-handler or a wrapping call; an unknown Express version is contextual.

How to review or fix

Fix (review): wrap the body in try/catch and pass the error to next.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: