Cuadrix / puppeteer-page-proxy

Additional module to use with 'puppeteer' for setting proxies per page basis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection

anstag opened this issue · comments

How fix here?

Error: Protocol error (Network.getCookies): Session closed. Most likely the page has been closed.
    at CDPSession.send (.../node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:273:35)
    at Object.getCookies (.../node_modules/puppeteer-page-proxy/src/lib/cdp.js:6:38)
    at CookieHandler.getCookies (.../node_modules/puppeteer-page-proxy/src/lib/cookies.js:84:51)
    at requestHandler (.../node_modules/puppeteer-page-proxy/src/core/proxy.js:15:40)
    at $ppp_request_listener (.../node_modules/puppeteer-page-proxy/src/core/proxy.js:82:15)
    at event.enqueueInterceptAction (.../node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:273:32)
    at process._tickCallback (internal/process/next_tick.js:68:7)

"puppeteer": "^16.1.0",
"puppeteer-page-proxy": "^1.2.8",