From 6ce5d09e82f4437dc8b9f02b7ec0821cabac7b82 Mon Sep 17 00:00:00 2001 From: Michal Fasanek Date: Mon, 28 Sep 2026 17:35:07 +0200 Subject: [PATCH] Fix validation server crash on startup under Express 5 Express 5 (path-to-regexp v8) rejects the bare '*' route path, so app.all('*', ...) threw 'Missing parameter name at index 1: *' at startup. Use a final app.use() handler for the 404 catch-all instead. Co-Authored-By: Claude Opus 5.5 --- server/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/index.ts b/server/src/index.ts index ec853054..34b5d601 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -46,7 +46,7 @@ app.post('/api/v2/segment-target/:integrationKey', async (req, res) => { } }); -app.all('*', (_, res) => { +app.use((_, res) => { return sendErrorResponse(res, new AppError(HttpStatus.notFound, `not found`)); });