miyakogi / pyppeteer

Headless chrome/chromium automation library (unofficial port of puppeteer)
Other
3.56k stars 372 forks source link

KeyError when send #293

Open niespodd opened 4 years ago

niespodd commented 4 years ago

Hi

I'm getting KeyError in pyppeteer.connection in send here: https://github.com/miyakogi/pyppeteer/blob/dev/pyppeteer/connection.py#L237

Despite the actual reason this is happening (perhaps some ws quirks), what is the rationale behind this code?

            if _id in self._callbacks:
                del self._callbacks[_id]
                _callback = self._callbacks[_id]

L237-239 connection.py

Mattwmaster58 commented 4 years ago

Hi @niespodd, it looks like this project has been abandoned. You may want to consider the active fork pyppeteer2. Feel free to create an issue there if your problem persists with the updated libary.