Skip to content

Commit bacd031

Browse files
author
rihardssceredins
committed
When using managed PostgreSQL instances on DigitalOcean every now and 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```
1 parent b69db31 commit bacd031

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
@@ -49,6 +49,7 @@ protected function causedByLostConnection(Throwable $e)
4949
'SQLSTATE[HY000] [2002] Connection timed out',
5050
'SSL: Connection timed out',
5151
'SQLSTATE[HY000]: General error: 1105 The last transaction was aborted due to Seamless Scaling. Please retry.',
52+
'Temporary failure in name resolution',
5253
]);
5354
}
5455
}

0 commit comments

Comments
 (0)