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
When accessing an URL with a label with more than 63 characters, an urllib3.exceptions.LocationParseError (label empty or too long) is returned without being caught by requests.
Maybe this is related to #4746?
Expected Result
No exception, or an exception raised by requests (maybe InvalidURL?).
This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c).
The text was updated successfully, but these errors were encountered:
After sifting through similar issues/PR, it seems that this could be solved similarly to #2344, i.e., catch urllib3.exceptions.LocationParseError for every call to urllib3.util.parse_url and raise an requests.exceptions.InvalidURL instead.
When accessing an URL with a label with more than 63 characters, an
urllib3.exceptions.LocationParseError
(label empty or too long) is returned without being caught by requests.Maybe this is related to #4746?
Expected Result
No exception, or an exception raised by requests (maybe InvalidURL?).
Actual Result
Exception is not caught by requests.
Reproduction Steps
System Information
This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c).
The text was updated successfully, but these errors were encountered: