Skip to content

Commit

Permalink
Handle 503s in git clone more gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Apr 19, 2024
1 parent fc061cc commit 00eb002
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Service/UpdaterWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ public function process(Job $job, SignalHandler $signal): array
} elseif ($e instanceof \RuntimeException && (
Preg::isMatch('{fatal: could not read Username for \'[^\']+\': No such device or address\n}i', $e->getMessage())
|| Preg::isMatch('{fatal: unable to access \'[^\']+\': Could not resolve host: }i', $e->getMessage())
|| Preg::isMatch('{fatal: unable to access \'[^\']+\': The requested URL returned error: 503}i', $e->getMessage())
|| Preg::isMatch('{Can\'t connect to host \'[^\']+\': Connection (timed out|refused)}i', $e->getMessage())
|| Preg::isMatch('{Failed to connect to [\w.-]+ port \d+: Connection (timed out|refused)}i', $e->getMessage())
|| Preg::isMatch('{Failed to connect to [\w.-]+ port \d+: No route to host}i', $e->getMessage())
Expand Down

0 comments on commit 00eb002

Please sign in to comment.