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 d5ffd8e commit 8d754f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Database/DetectsLostConnections.php
Expand Up @@ -49,6 +49,7 @@ protected function causedByLostConnection(Throwable $e)
'SQLSTATE[HY000] [2002] Connection timed out',
'SSL: Connection timed out',
'SQLSTATE[HY000]: General error: 1105 The last transaction was aborted due to Seamless Scaling. Please retry.',
'Temporary failure in name resolution',
]);
}
}

0 comments on commit 8d754f1

Please sign in to comment.