Skip to content

Commit

Permalink
fix: handle max clients connection error, supavisor (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenos authored Jan 23, 2024
1 parent 0c94937 commit 5e8caec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/http/error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 5e8caec

Please sign in to comment.