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

Handle global context errors (i.e. with no callback id) #286

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

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