Skip to content

Commit

Permalink
When using managed PostgreSQL instances on DigitalOcean every now and…
Browse files Browse the repository at this point in the history
… then this pops out. After seeing laravel#35744, laravel#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
  • Loading branch information
rihardssceredins committed Feb 24, 2021
1 parent 52c77fc commit d05cf3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Database/DetectsLostConnections.php
Expand Up @@ -45,6 +45,7 @@ protected function causedByLostConnection(Throwable $e)
'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.',
'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again',
'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: EOF detected',
'Temporary failure in name resolution',
]);
}
}

0 comments on commit d05cf3c

Please sign in to comment.