mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-18 00:45:58 +08:00
fix: attachment pdf
This commit is contained in:
parent
c5abdf8570
commit
e2aed6dd97
@ -573,6 +573,12 @@ document.addEventListener('load', handlePageLoad);
|
|||||||
cause: err,
|
cause: err,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (err?.message?.startsWith('net::ERR_ABORTED')) {
|
||||||
|
if (pdfUrls.length) {
|
||||||
|
// Not throw for pdf mode.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.logger.warn(`Page ${sn}: Browsing of ${url} failed`, { err: marshalErrorLike(err) });
|
this.logger.warn(`Page ${sn}: Browsing of ${url} failed`, { err: marshalErrorLike(err) });
|
||||||
return Promise.reject(new AssertionFailureError({
|
return Promise.reject(new AssertionFailureError({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user