fix(single_url): accept 500

This commit is contained in:
Gergo Moricz 2024-08-06 18:00:56 +02:00
parent 06751a8e21
commit b60ee30dba

View File

@ -338,7 +338,7 @@ export async function scrapSingleUrl(
Logger.debug(`⛏️ ${scraper}: Successfully scraped ${urlToScrap} with text length >= 100, breaking`);
break;
}
if (pageStatusCode && pageStatusCode == 404) {
if (pageStatusCode && (pageStatusCode == 404 || pageStatusCode == 500)) {
Logger.debug(`⛏️ ${scraper}: Successfully scraped ${urlToScrap} with status code 404, breaking`);
break;
}