Makes the flutter tool retry on a bad gateway network error from gradle (#140670)

Seen in https://github.com/flutter/flutter/issues/140643
This commit is contained in:
Zachary Anderson
2023-12-27 20:13:36 +00:00
committed by GitHub
parent 89f0c69e49
commit ddb8d1f670
2 changed files with 34 additions and 0 deletions

View File

@@ -214,6 +214,7 @@ final GradleHandledError networkErrorHandler = GradleHandledError(
test: _lineMatcher(const <String>[
'java.io.FileNotFoundException: https://downloads.gradle.org',
'java.io.IOException: Unable to tunnel through proxy',
'java.io.IOException: Server returned HTTP response code: 502',
'java.lang.RuntimeException: Timeout of',
'java.util.zip.ZipException: error in opening zip file',
'javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake',