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

Unexpected UnicodeError on some URL #6611

Closed
catap opened this issue Dec 22, 2023 · 2 comments
Closed

Unexpected UnicodeError on some URL #6611

catap opened this issue Dec 22, 2023 · 2 comments

Comments

@catap
Copy link

catap commented Dec 22, 2023

Seems that requests haven't handle well some url which curl handle quite well.

Expected Result

Should work.

Actual Result

Crashed as UnicodeError: label empty or too long

Reproduction Steps

import requests

requests.get("https://www.elyricsworld.com/go.php?url=http://894763313no67.%D1%86%D0%B5%D0%BD%D1%82%D1%80-%D1%81%D1%82%D1%80%D0%B0%D1%85%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F-%D0%BE%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD.%D1%80%D1%84")

System Information

{
  "chardet": {
    "version": null
  },
  "charset_normalizer": {
    "version": "3.3.2"
  },
  "cryptography": {
    "version": "41.0.5"
  },
  "idna": {
    "version": "3.4"
  },
  "implementation": {
    "name": "CPython",
    "version": "3.10.13"
  },
  "platform": {
    "release": "21.6.0",
    "system": "Darwin"
  },
  "pyOpenSSL": {
    "openssl_version": "30100040",
    "version": "23.2.0"
  },
  "requests": {
    "version": "2.31.0"
  },
  "system_ssl": {
    "version": "30200000"
  },
  "urllib3": {
    "version": "1.26.18"
  },
  "using_charset_normalizer": true,
  "using_pyopenssl": true
}
@ankit-pn
Copy link

I want to work on this, it would be great if anyone assign this to me!

@sigmavirus24
Copy link
Contributor

Duplicate of #6026 #4187 and many others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants