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

Task exception was never retrieved #69

Open
Bruledamien opened this issue Apr 23, 2018 · 3 comments · May be fixed by #76
Open

Task exception was never retrieved #69

Bruledamien opened this issue Apr 23, 2018 · 3 comments · May be fixed by #76

Comments

@Bruledamien
Copy link

I randomly (but quite frequently) get this error when I try to crawl several pages of a website :
Task exception was never retrieved future: <Task finished coro=<CDPSession.send() done, defined at /Users/user/.virtualenvs/project/lib/python3.6/site-packages/pyppeteer/connection.py:180> exception=NetworkError('Protocol Error: Unknown event id: 25 None',)>

Traceback (most recent call last): File "/Users/user/.virtualenvs/project/lib/python3.6/site-packages/pyppeteer/connection.py", line 200, in send return await callback
An idea where this error could come from ?

Also, this does not seem to affect the scenario but it looks like tasks are not handled the way asyncio expects in the connection class.

@zdrouse
Copy link

zdrouse commented Apr 23, 2018

Just curious, are you using Python 3.6.5?

@Bruledamien
Copy link
Author

I am using Python 3.6.3, I will try upgrading.

@mjcaley
Copy link

mjcaley commented May 11, 2018

I got this on both 3.6.3 and 3.6.5, but only when I was using the ignoreHTTPSErrors option. Was that the case for you too @Bruledamien?

I think it might have something to do with the Security.handleCertificateError, which also looks to be deprecated now. Maybe there's another option that can be used.

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 a pull request may close this issue.

3 participants