mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: 尽量避免因代理问题导致google request异常
This commit is contained in:
@@ -483,6 +483,7 @@ func _jsonRequest(client *http.Client, method httputils.THttpMethod, url string,
|
||||
"EOF",
|
||||
"i/o timeout",
|
||||
"TLS handshake timeout",
|
||||
"connection reset by peer",
|
||||
} {
|
||||
if strings.Index(err.Error(), msg) >= 0 {
|
||||
retry = true
|
||||
|
||||
Reference in New Issue
Block a user