Skip to content

Commit 9cffd34

Browse files
author
Rihards Ščeredins
authored
[6.x] Add new lost connection message to DetectsLostConnections for Vapor (#39209)
Vapor with serverless PostgreSQL threw this: `SQLSTATE[08006] [7] could not translate host name "xxx.eu-central-1.rds.amazonaws.com" to address: Try again (SQL: select * from "personal_access_tokens" where "personal_access_tokens"."id" = 1 limit 1)`
1 parent 9107ea6 commit 9cffd34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Illuminate/Database/DetectsLostConnections.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ protected function causedByLostConnection(Throwable $e)
5555
'SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host',
5656
'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: No route to host',
5757
'The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior.',
58+
'SQLSTATE[08006] [7] could not translate host name',
5859
]);
5960
}
6061
}

0 commit comments

Comments
 (0)