We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aff29a commit e779817Copy full SHA for e779817
src/utils/errors.ts
@@ -1,3 +1,5 @@
1
+const puppeteerErrMsgs = [/Cannot extract value when objectId is given/, /Execution context was destroyed/];
2
+
3
export const shouldIgnoreUnhandledRejection = (err: Error | undefined): boolean => {
4
if (!err) {
5
return false;
@@ -7,7 +9,7 @@ export const shouldIgnoreUnhandledRejection = (err: Error | undefined): boolean
7
9
return true;
8
10
}
11
- if (/Cannot extract value when objectId is given/.test(err.message) && err.stack?.includes("/puppeteer-core/")) {
12
+ if (puppeteerErrMsgs.some(msg => msg.test(err.message)) && err.stack?.includes("/puppeteer-core/")) {
13
14
15
0 commit comments