mirror of
https://github.com/Jackett/Jackett
synced 2024-12-27 18:29:47 +00:00
handle cloudflare error 523
This commit is contained in:
parent
d1d8ef916e
commit
b66fd18380
1 changed files with 1 additions and 0 deletions
|
@ -473,6 +473,7 @@ namespace Jackett.Common.Indexers
|
|||
|| 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 == 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.");
|
||||
|
|
Loading…
Reference in a new issue