Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.12.0: URL has an invalid label error #3686

Closed
sfedr opened this issue Nov 15, 2016 · 2 comments
Closed

v2.12.0: URL has an invalid label error #3686

sfedr opened this issue Nov 15, 2016 · 2 comments

Comments

@sfedr
Copy link

sfedr commented Nov 15, 2016

When url contains an underscore the request fails with 'URL has an invalid label error'

Seems like a result of updating to urllib3 to 1.19.

While underscores in the hostname would not meet strict RFC requirements it would still work in many scenarios, so I would propose to remove the check

Example:

requests.get('http://test_t')
*** InvalidURL: URL has an invalid label.
@nateprewitt
Copy link
Member

Thanks for opening this issue, @afaicode. This is currently being tracked in #3683 which will be the official issue for further discussion. I believe @Lukasa has stated underscores in host names are not behaviour we likely want to support, but you're welcome to raise objections in the appropriate issue.

@Lukasa
Copy link
Member

Lukasa commented Nov 15, 2016

Yup, closing in favour of #3683.

@Lukasa Lukasa closed this as completed Nov 15, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants