From 9cffd34c38c108abf8911f71b1423e965ce5fa71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rihards=20=C5=A0=C4=8Deredins?= Date: Fri, 15 Oct 2021 17:33:47 +0300 Subject: [PATCH] [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)` --- src/Illuminate/Database/DetectsLostConnections.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Database/DetectsLostConnections.php b/src/Illuminate/Database/DetectsLostConnections.php index e12bf1660a06..1cbd7b158d69 100644 --- a/src/Illuminate/Database/DetectsLostConnections.php +++ b/src/Illuminate/Database/DetectsLostConnections.php @@ -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', ]); } }