You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to store cookies information of an AsyncClient in SQLite so I can re-initialize it again with the same cookies, I tried pickling the .cookies attribute of the client with pickle.dumps but it doesn't work and TypeError: cannot pickle '_thread.RLock' object is raised. Is there any other way to serialize the Cookies objects, it doesn't have to strictly be serialization, I just want to store the cookies information so that newly initialized AsyncClient can continue using it and then store it once done. Doing dict(Cookies()) only returns the key and value of the cookies but no other information like expiry, domain,... I'm open to design suggestions but storage has to be in sqlite
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I want to store cookies information of an
AsyncClientin SQLite so I can re-initialize it again with the same cookies, I tried pickling the.cookiesattribute of the client withpickle.dumpsbut it doesn't work andTypeError: cannot pickle '_thread.RLock' objectis raised. Is there any other way to serialize theCookiesobjects, it doesn't have to strictly be serialization, I just want to store the cookies information so that newly initializedAsyncClientcan continue using it and then store it once done. Doingdict(Cookies())only returns the key and value of the cookies but no other information like expiry, domain,... I'm open to design suggestions but storage has to be in sqliteBeta Was this translation helpful? Give feedback.
All reactions