mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-19 02:05:58 +08:00
fix
This commit is contained in:
parent
6c0aff4cc9
commit
dc8781d20c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user