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

Gives error even with a stable bandwidth and CPU resources #24

Open
sjpatel21 opened this issue Feb 18, 2019 · 4 comments
Open

Gives error even with a stable bandwidth and CPU resources #24

sjpatel21 opened this issue Feb 18, 2019 · 4 comments

Comments

@sjpatel21
Copy link

sjpatel21 commented Feb 18, 2019

Gives this error when I use pySmartDL on aws server to download some files from a very stable site.

Exception in thread Thread-37:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.6/dist-packages/pySmartDL/pySmartDL.py", line 680, in post_threadpool_actions
SmartDL_obj.retry(str(pool.get_exceptions()[0]))
File "/usr/local/lib/python3.6/dist-packages/pySmartDL/pySmartDL.py", line 312, in retry
self.start()
File "/usr/local/lib/python3.6/dist-packages/pySmartDL/pySmartDL.py", line 300, in start
self.wait(raise_exceptions=True)
File "/usr/local/lib/python3.6/dist-packages/pySmartDL/pySmartDL.py", line 452, in wait
raise self.errors[-1]
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.6/dist-packages/pySmartDL/pySmartDL.py", line 680, in post_threadpool_actions
SmartDL_obj.retry(str(pool.get_exceptions()[0]))
File "/usr/local/lib/python3.6/dist-packages/pySmartDL/pySmartDL.py", line 312, in retry
self.start()
File "/usr/local/lib/python3.6/dist-packages/pySmartDL/pySmartDL.py", line 300, in start
self.wait(raise_exceptions=True)
File "/usr/local/lib/python3.6/dist-packages/pySmartDL/pySmartDL.py", line 452, in wait
raise self.errors[-1]
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.6/dist-packages/pySmartDL/pySmartDL.py", line 680, in post_threadpool_actions
SmartDL_obj.retry(str(pool.get_exceptions()[0]))
File "/usr/local/lib/python3.6/dist-packages/pySmartDL/pySmartDL.py", line 312, in retry
self.start()
File "/usr/local/lib/python3.6/dist-packages/pySmartDL/pySmartDL.py", line 300, in start
self.wait(raise_exceptions=True)
File "/usr/local/lib/python3.6/dist-packages/pySmartDL/pySmartDL.py", line 452, in wait
raise self.errors[-1]
urllib.error.HTTPError: HTTP Error 0: The maximum retry attempts reached (The read operation timed out)

@sjpatel21 sjpatel21 changed the title Gives error even with a stable bandwidth Gives error even with a stable bandwidth and CPU resources Feb 18, 2019
@iTaybb
Copy link
Owner

iTaybb commented Feb 18, 2019

Which URL are you trying to fetch? and what OS are you trying from?

@sjpatel21
Copy link
Author

The URL doesn't matter, as trying again with the same url successfully downloads it.
I am using Ubuntu 18.04.
btw if it makes any difference I am using this code to download albums from an Indian Music Streaming Site called JioSaavn.com :
https://github.com/sjpatel21/Saavn-Downloader/blob/master/Download.py

@iTaybb
Copy link
Owner

iTaybb commented Feb 18, 2019

I'm almost positive you should use the "raw" directory instead of the "blob" one.
Please try to download this:
https://github.com/sjpatel21/Saavn-Downloader/raw/master/Download.py

@sjpatel21
Copy link
Author

I'm almost positive you should use the "raw" directory instead of the "blob" one.
Please try to download this:
https://github.com/sjpatel21/Saavn-Downloader/raw/master/Download.py

Yes, I am using the cloned version. Just shared the file to you incorrectly. Do you have any thoughts about the issue. As the error also appears when I try it on my local pc. You can see if it gets generated on your side by providing a URL like this: https://www.jiosaavn.com/featured/us-uk-top-40/aorYsyBFfFQ_

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