diff --git a/src/scripts/network-helper.ts b/src/scripts/network-helper.ts index b35890d..8a6272c 100644 --- a/src/scripts/network-helper.ts +++ b/src/scripts/network-helper.ts @@ -39,6 +39,9 @@ const commonConfig = { * Jar of cookies to send along the request. */ jar: shared.session.cookieJar, + validateStatus: function (status: number) { + return status < 500; // Resolve only if the status code is less than 500 + } }; /** @@ -143,6 +146,7 @@ export async function fetchGETResponse(url: string): Promise