Description
Is your feature request related to a problem? Please describe.
Sometimes when a request fails due to a rnet.TimeoutError
, and the request is retried (I'm using Tenacity), the same exception is raised again and again even though the network issue has been resolved.
My solution was to recreate the client before retrying a failed request every time, but that means I have to transfer the cookies from the old client instance to the new one.
Currently, the only way to get cookies from a client is using the .get_cookies(url)
method, but it requires inputting a URL.
Describe the solution you'd like
A method or an attribute that returns all the cookies associated with a client.
Describe alternatives you've considered
I tried to keep track of every URL for every request the client makes, and use those URLs to get any possibly associated cookies.
Additional context
None.
Metadata
Metadata
Assignees
Labels
Projects
Status