mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-19 23:19:15 +08:00
fix: search with failed pages
This commit is contained in:
parent
0dd05b5dab
commit
e529369ba6
@ -1036,6 +1036,7 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`;
|
||||
let concluded = false;
|
||||
|
||||
const handler = async (it: AsyncGenerator<PageSnapshot | undefined>, idx: number) => {
|
||||
try {
|
||||
for await (const x of it) {
|
||||
results[idx] = x;
|
||||
|
||||
@ -1045,6 +1046,9 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`;
|
||||
}
|
||||
|
||||
}
|
||||
} catch (err: any) {
|
||||
this.logger.warn(`Failed to scrap ${urls[idx]}`, { err: marshalErrorLike(err) });
|
||||
}
|
||||
};
|
||||
|
||||
Promise.all(
|
||||
|
Loading…
x
Reference in New Issue
Block a user