-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Hello,
I think it's worth opening an issue report, because after long and countless time spent on reading docs I did not find any solution for my issue which is while setting cookies for Client or request itself.
I do import my cookies from selenium chrome and at the end they looks like this:
Cookies exported after emulation
{'_ga_NJ8BH4ETQS': 'GS1.1.1686190607.1.1.1686190608.0.0.0', 'PHPSESSID': '1mmh22v3cv3emq03mfnmp9at7c', '_gat_gtag_UA_146586338_1': '1', '__cf_bm': 'd9.lRGrcxe8773zqF2kEIqkHjPBypcLAXW9IUbZw2xs-1686190608-0-AZYm7BpJjSQzc3vtweTrL3ZShFZxdzsuxNjLbdy16F/prX4DBvmzfV1D1saoGLss3Q==', '_gid': 'GA1.2.400962821.1686190607', '_ga': 'GA1.1.1668825872.1686190607', 'cf_clearance': 'swD.Mvx4O5.TO3.WhMUxQRY9zgaWMaV5U8.Q18fSXaE-1686190600-0-250'}
then I use that output in httpx.AsyncClient(..., cookies=browser_cookies, ...) and only 1 cookie is present in client and I am completely clueless why it is like that.
Debug view
https://i.imgur.com/STBZEEZ.pngI have tried setting up cookies for AsyncClient only, build_request method only and on both in the same time and no matter if I use these cookies as argument for things above or I do use httpx.Cookie and use set method for each cookie I always see only PHPSESSID in requests and all of them fails due to being stuck on Cloudflare page, because other cookies are not set.
Have anyone face issue like this or can point me right direction to solve that mess?