Apify Discord Mirror

Updated 2 years ago

setCookies only works for name and value keys

At a glance

The community member is trying to set cookies to a session, but the cookies are only set if there are only name and value keys. If there are any other keys present, the cookie is not set. The community member is getting the cookies from Playwright crawlers, which are a list of objects, and then passing that list of objects to Session.SetCookies(), but it is not working. The community member is asking for guidance on how to debug this further.

Dear all. I am trying to set cookies to a session. But cookies are only set if there is only name and value keys. If there is any other key present the cookie is not set. Can you please guide me how to debug it further ?

Cookies I am getting from playwright crawlers. Its a list of objects. Then I pass that list of objects to

Session. Setcookies() but its doesnt work.

Best Regards
Add a reply
Sign up and join the conversation on Discord