wkentaro / gdown

Google Drive Public File Downloader when Curl/Wget Fails
MIT License
4.06k stars 342 forks source link

requests.exceptions.ConnectionError #278

Open ilovecwr opened 11 months ago

ilovecwr commented 11 months ago

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