Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to handle Page crashed error ,when execute the run method。 #114

Closed
susakin opened this issue Feb 21, 2024 · 1 comment
Closed

how to handle Page crashed error ,when execute the run method。 #114

susakin opened this issue Feb 21, 2024 · 1 comment

Comments

@susakin
Copy link

susakin commented Feb 21, 2024

微信截图_20240221173312

try {
const { leaks, runResult } = await run({ scenario });
} catch(e) {
console.log(e)
}

try catch can not handle this error, i need to get this error to return to service

@JacksonGL
Copy link
Member

JacksonGL commented Feb 21, 2024

This is a Puppeteer error that does not seem to be catchable. It is likely because the browser OOMed (out-of-memory crashed). I would recommend testing on a scenario where the web app uses less memory; or perhaps try the solution here if you are running on Docker: puppeteer/puppeteer#1321 (comment)

@susakin susakin closed this as completed Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants