NeoNomadeN
Apify & Crawlee3y ago
13 replies
NeoNomade

Setting cookies is failing

Error:
/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:330
                error: new Errors_js_1.ProtocolError(),
                       ^

ProtocolError: Protocol error (Network.deleteCookies): Invalid parameters Failed to deserialize params.name - BINDINGS: mandatory field missing at position 6418


Code :

const goodCookies = session.getCookies('https://www.mywebsite.com/')
console.log(goodCookies) // I see the cookies and they look fine, a list of dicts.
page.setCookie(goodCookies)
Was this page helpful?