NeoNomadeN
Apify & Crawlee3y ago
1 reply
NeoNomade

setCookie and session.getCookies don't work together

I'm trying to run this code in my default handler:
if (request.loadedUrl === 'url-from-where-i-get-cookies'){
        goodCokies = session.getCookies('url-from-where-i-get-cookies')
        await crawler.addRequests(['url-where-i-need-cookies'])
        return
    }
    await page.setCookie(goodCokies)


Error:
Reclaiming failed request back to the list or queue. Protocol error (Network.deleteCookies): Invalid parameters Failed to deserialize params.name - BINDINGS: mandatory field missing at position 2081
Was this page helpful?