handle cloudflare error 523

This commit is contained in:
kaso17
2018-04-01 15:40:43 +02:00
parent d1d8ef916e
commit b66fd18380

View File

@@ -473,6 +473,7 @@ namespace Jackett.Common.Indexers
|| response.Status == System.Net.HttpStatusCode.GatewayTimeout || response.Status == System.Net.HttpStatusCode.GatewayTimeout
|| (int)response.Status == 521 // used by cloudflare to signal the original webserver is refusing the connection || (int)response.Status == 521 // used by cloudflare to signal the original webserver is refusing the connection
|| (int)response.Status == 522 // used by cloudflare to signal the original webserver is not reachable at all (timeout) || (int)response.Status == 522 // used by cloudflare to signal the original webserver is not reachable at all (timeout)
|| (int)response.Status == 523 // used by cloudflare to signal the original webserver is not reachable at all (Origin is unreachable)
) )
{ {
throw new Exception("Request to " + response.Request.Url + " failed (Error " + response.Status + ") - The tracker seems to be down."); throw new Exception("Request to " + response.Request.Url + " failed (Error " + response.Status + ") - The tracker seems to be down.");