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

requests.exceptions.ConnectionError #278

Open
ilovecwr opened this issue Aug 8, 2023 · 0 comments
Open

requests.exceptions.ConnectionError #278

ilovecwr opened this issue Aug 8, 2023 · 0 comments
Labels
bug for issue

Comments

@ilovecwr
Copy link

ilovecwr commented Aug 8, 2023

Provide environment information

Python 2.7.16
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
gdown 4.7.1

What OS are you using?

macOS 11.7.9

Describe the Bug

gdown -c --no-cookies --no-check-certificate 1ZsIh8Z6SVij6xMVDpYFyoQKP4fHSrAFB

I used the above command line and kept getting the following result and my download just failed, no matter I use VPN or not. Using options or not also failed.

Traceback (most recent call last):
File "/Users/chenwanru/Library/Python/2.7/bin/gdown", line 8, in
sys.exit(main())
File "/Users/chenwanru/Library/Python/2.7/lib/python/site-packages/gdown/cli.py", line 167, in main
format=args.format,
File "/Users/chenwanru/Library/Python/2.7/lib/python/site-packages/gdown/download.py", line 161, in download
res = sess.get(url, stream=True, verify=verify)
File "/Users/chenwanru/Library/Python/2.7/lib/python/site-packages/requests/sessions.py", line 542, in get
return self.request('GET', url, **kwargs)
File "/Users/chenwanru/Library/Python/2.7/lib/python/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/Users/chenwanru/Library/Python/2.7/lib/python/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/Users/chenwanru/Library/Python/2.7/lib/python/site-packages/requests/adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine('No status line received - the server has closed the connection',))

Expected Behavior

Just want to know how I can fixed this issue. Thank you for your help.

To Reproduce

No response

@ilovecwr ilovecwr added the bug for issue label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug for issue
Projects
None yet
Development

No branches or pull requests

1 participant