From 5e8caec744753ea30d311723c82a8e9f6349fb36 Mon Sep 17 00:00:00 2001 From: Fabrizio Date: Tue, 23 Jan 2024 08:51:53 +0000 Subject: [PATCH] fix: handle max clients connection error, supavisor (#426) --- src/http/error-handler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/error-handler.ts b/src/http/error-handler.ts index a68d986a..1b3639f3 100644 --- a/src/http/error-handler.ts +++ b/src/http/error-handler.ts @@ -30,6 +30,7 @@ export const setErrorHandler = (app: FastifyInstance) => { if ( error instanceof DatabaseError && [ + 'Max client connections reached', 'remaining connection slots are reserved for non-replication superuser connections', 'no more connections allowed', 'sorry, too many clients already',