setCookie and session.getCookies don't work together
I'm trying to run this code in my default handler:
Error:
1 Reply
wise-white•2y ago
1) Which crawler are you using? Puppeteer has a different signature for setting cookies:
await page.setCookie(...goodCookies)
2) Are you sure that session actually has the cookie assigned to it? Cookies are saved to session after requestHandler finishes successfully.