This commit is contained in:
Yanlong Wang 2025-05-08 13:24:07 +08:00
parent 6c0aff4cc9
commit dc8781d20c
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -334,6 +334,10 @@ export class GoogleSERPOldFashion extends GoogleSERP {
const snapshot = await this.puppeteerControl.controlledScrap(url, getWebSearchResults, opts);
if (!Array.isArray(snapshot)) {
throw new ServiceBadAttemptError('Google returned an error page. This may happen due to various reasons, including rate limiting or other issues.');
}
return snapshot;
}