Skip to content

Commit

Permalink
[6.x] Add new lost connection message to DetectsLostConnections for…
Browse files Browse the repository at this point in the history
… 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)`
  • Loading branch information
Rihards Ščeredins authored Oct 15, 2021
1 parent 9107ea6 commit 9cffd34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Database/DetectsLostConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ protected function causedByLostConnection(Throwable $e)
'SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host',
'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: No route to host',
'The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior.',
'SQLSTATE[08006] [7] could not translate host name',
]);
}
}

0 comments on commit 9cffd34

Please sign in to comment.