Skip to content
This repository was archived by the owner on May 8, 2020. It is now read-only.

Conversation

@dmaone
Copy link

@dmaone dmaone commented Dec 30, 2019

Those global errors arise from, for example, invalid JSON supplied to evaluateHandle().

Current pyppeteer revision just waits forever when that happens, because error happens on CDP level, not on callback level.

While it is possible to recover from such situation, it's somewhat hard to know what command caused the error. This patch just aborts all in-flight callbacks - which works for me but may not be the optimal way to handle such errors.

Those global errors arise from, for example, invalid JSON
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant