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

how disabled "UnhandledPromiseRejectionWarning: Error: Protocol error" #367

Closed
hktalent opened this issue Jun 1, 2020 · 1 comment
Closed

Comments

@hktalent
Copy link

hktalent commented Jun 1, 2020

(node:34367) UnhandledPromiseRejectionWarning: Error: Protocol error (Network.getCookies): Target closed.
    at /node_modules/puppeteer/lib/Connection.js:202:56
    at new Promise (<anonymous>)
    at CDPSession.send (/node_modules/puppeteer/lib/Connection.js:201:12)
    at Page.cookies (/node_modules/puppeteer/lib/Page.js:320:32)
    at Crawler._getCookies (/node_modules/headless-chrome-crawler/lib/crawler.js:271:23)
    at Crawler.crawl (/node_modules/headless-chrome-crawler/lib/crawler.js:60:12)
    at processTicksAndRejections (internal/process/task_queues.js:89:5)
    at async HCCrawler.customCrawl [as _customCrawl] (/myCrawler/testCrawler.js:34:22)
    at async HCCrawler._request (/node_modules/headless-chrome-crawler/lib/hccrawler.js:338:19)
    at async HCCrawler._startRequest (/node_modules/headless-chrome-crawler/lib/hccrawler.js:305:19)
    at async Promise.all (index 0)
    at async PriorityQueue._pull (/node_modules/headless-chrome-crawler/lib/priority-queue.js:94:5)
(node:34367) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 56)
@hktalent
Copy link
Author

hktalent commented Jun 1, 2020

like
#344

@hktalent hktalent closed this as completed Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant