Skip to content

Commit 5d5547b

Browse files
authored
Indexer: Detect more F95zone error pages
1 parent ba71d52 commit 5d5547b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

indexer/f95zone.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
"You have been temporarily blocked because of a large amount of requests, please try again later",
3131
)
3232
TEMP_ERROR_MESSAGES = (
33+
b'<div id="cf-error-details" class="p-0">',
34+
b"<b>504 - Gateway Timeout .</b>",
35+
b'<body data-template="error">',
3336
b"<title>502 Bad Gateway</title>",
3437
b"<title>Error 502</title>",
3538
b"An unexpected error occurred. Please try again later.",
@@ -68,7 +71,7 @@ class IndexerError:
6871

6972

7073
ERROR_SESSION_LOGGED_OUT = IndexerError(
71-
"SESSION_LOGGED_OUT", dt.timedelta(hours=2).total_seconds()
74+
"SESSION_LOGGED_OUT", dt.timedelta(minutes=15).total_seconds()
7275
)
7376
ERROR_F95ZONE_RATELIMIT = IndexerError(
7477
"F95ZONE_RATELIMIT", dt.timedelta(minutes=15).total_seconds()

0 commit comments

Comments
 (0)