When exceptions are raised the redirect information is lost #1991
Unanswered
vivekhub
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running into this issue that I need some help with.. Let us say I do a get() on http://example.com and say it redirects to https://example.com. Now if https://example.com's SSL certificate has expired, an exception is raised in the form of httpx.HTTPError but the fact that we started with http://example.com which redirected to https://example.com is lost. Yes I am using follow_redirects=True in my get() request. Is there anyway the redirect history can be preserved and accessed ?
Beta Was this translation helpful? Give feedback.
All reactions