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

[BUG] runtime.unhandledpromiserejection #300

Open
raboomar opened this issue Nov 18, 2023 · 0 comments
Open

[BUG] runtime.unhandledpromiserejection #300

raboomar opened this issue Nov 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@raboomar
Copy link

raboomar commented Nov 18, 2023

c

Environment

  • chrome-aws-lambda Version: 10.1.0
  • puppeteer / puppeteer-core Version:
  • OS: was lambda
  • Node.js Version: 14
  • Lambda / GCF Runtime: node

Current Behavior

Currently works most of the time. I added logging, but it occasionally errors with " runtime.unhandledpromiserejection" when closing the browser. Usually, when the lambda is getting triggered multiple times

Error:

{ "errorType": "Runtime.UnhandledPromiseRejection", "errorMessage": "Error: Protocol error (IO.close): Target closed.", "reason": { "errorType": "Error", "errorMessage": "Protocol error (IO.close): Target closed.", "message": "Protocol error (IO.close): Target closed.", "stack": [ "Error: Protocol error (IO.close): Target closed.", " at /opt/nodejs/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:217:63", " at new Promise ()", " at CDPSession.send (/opt/nodejs/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:216:16)", " at Readable.read [as _read] (/opt/nodejs/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js:281:30)", " at runMicrotasks ()", " at processTicksAndRejections (internal/process/task_queues.js:95:5)" ] }, "promise": {}, "stack": [ "Runtime.UnhandledPromiseRejection: Error: Protocol error (IO.close): Target closed.", " at process. (/var/runtime/index.js:35:15)", " at process.emit (events.js:412:35)", " at process.emit (domain.js:475:12)", " at processPromiseRejections (internal/process/promises.js:245:33)", " at processTicksAndRejections (internal/process/task_queues.js:96:32)" ] }

Steps to Reproduce

@raboomar raboomar added the bug Something isn't working label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant