Skip to content

Commit d05cf3c

Browse files
author
rihardssceredins
committed
When using managed PostgreSQL instances on DigitalOcean every now and then this pops out. After seeing #35744, #35790 and others decided to fix this.
PDOException: SQLSTATE[08006] [7] could not translate host name "private-xxx-do-user-0.a.db.ondigitalocean.com" to address: Temporary failure in name resolution
1 parent 52c77fc commit d05cf3c

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
@@ -45,6 +45,7 @@ protected function causedByLostConnection(Throwable $e)
4545
'The connection is broken and recovery is not possible. The connection is marked by the client driver as unrecoverable. No attempt was made to restore the connection.',
4646
'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again',
4747
'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: EOF detected',
48+
'Temporary failure in name resolution',
4849
]);
4950
}
5051
}

0 commit comments

Comments
 (0)