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

urllib.error.URLError: <urlopen error unknown url type: b'http>, #181

Open
imaxu opened this issue Aug 15, 2020 · 1 comment
Open

urllib.error.URLError: <urlopen error unknown url type: b'http>, #181

imaxu opened this issue Aug 15, 2020 · 1 comment

Comments

@imaxu
Copy link

imaxu commented Aug 15, 2020

with py3.8,I found a error when I save a file : urllib.error.URLError: <urlopen error unknown url type: b'http>, I found the codes:

        if cls.__name__ == 'File':
             request = Request(url.encode('utf-8'), data, headers)
         else:
             request = Request(url, data, headers)

it will be a bytes array when url.encode('utf-8'), why do this ?

@kilabyte
Copy link

#157

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

2 participants