Skip to content

Commit

Permalink
Fix regex to detect "curl: transfer closed with X bytes remaining"
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed Aug 12, 2023
1 parent 9c9c937 commit 2df2f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api
Original file line number Diff line number Diff line change
Expand Up @@ -2069,7 +2069,7 @@ If this keeps happening, see: https://stackoverflow.com/questions/66366582")
error_type="internet"
fi

if grep -q "errorCode=1 SSL/TLS handshake failure\|errorCode=1 total length mismatch.\|errorCode=1 Failed to establish connection, cause: Connection refused\|errorCode=2 Timeout\.\|abort: Connection reset by peer\|104: Connection reset by peer\|errorCode=19.*Name resolution for.*failed\|failed: Temporary failure in name resolution.\|Unable to establish SSL connection.\|Connection closed at byte \|Read error at byte \|failed: No route to host\.\|errorCode=8 Invalid range header\.curl: .* transfer closed with .* bytes remaining to read" <<<"$errors" ;then
if grep -q "errorCode=1 SSL/TLS handshake failure\|errorCode=1 total length mismatch.\|errorCode=1 Failed to establish connection, cause: Connection refused\|errorCode=2 Timeout\.\|abort: Connection reset by peer\|104: Connection reset by peer\|errorCode=19.*Name resolution for.*failed\|failed: Temporary failure in name resolution.\|Unable to establish SSL connection.\|Connection closed at byte \|Read error at byte \|failed: No route to host\.\|errorCode=8 Invalid range header\.\|curl: .* transfer closed with .* bytes remaining to read" <<<"$errors" ;then
error_caption+=("Download failed. Check your internet connection and firewall, then try again.")
error_type="internet"
fi
Expand Down

0 comments on commit 2df2f69

Please sign in to comment.