Rudd-O / seedboxtools

A tool to automate downloading finished torrents from a seedbox
http://pypi.python.org/pypi/seedboxtools
28 stars 3 forks source link

AssertionError: Non-OK status code while retrieving get_finished_torrents: 404 #5

Closed Toasterme closed 9 years ago

Toasterme commented 10 years ago

Hi, i always have this error

AssertionError: Non-OK status code while retrieving get_finished_torrents: 404

Complete output is: $ bin/leechtorrents
Starting download of finished torrents Traceback (most recent call last): File "bin/leechtorrents", line 10, in sys.exit(mainloop()) File "/xyz/seedboxtools-1.2.11/src/seedboxtools/leecher.py", line 167, in mainloop retvalue = do_guarded() File "/xyz/seedboxtools-1.2.11/src/seedboxtools/leecher.py", line 151, in do_guarded remove_finished=opts.remove_finished File "/xyz/seedboxtools-1.2.11/src/seedboxtools/leecher.py", line 12, in download for torrent, status, filename in client.get_files_to_download(): File "/xyz/seedboxtools-1.2.11/src/seedboxtools/clients.py", line 45, in get_files_to_download torrents = self.get_finished_torrents() File "/xyz/seedboxtools-1.2.11/src/seedboxtools/clients.py", line 241, in get_finished_torrents assert r.status_code == 200, "Non-OK status code while retrieving get_finished_torrents: %r"%r.status_code AssertionError: Non-OK status code while retrieving get_finished_torrents: 404

Do you have any ideas ?

thanks,

Rudd-O commented 10 years ago

I will fix that :-)

On Sun, 2013-11-10 at 14:17 -0800, herouxb wrote:

Hi, i always have this error

AssertionError: Non-OK status code while retrieving get_finished_torrents: 404

Complete output is: $ bin/leechtorrents

Starting download of finished torrents Traceback (most recent call last): File "bin/leechtorrents", line 10, in sys.exit(mainloop()) File "/xyz/seedboxtools-1.2.11/src/seedboxtools/leecher.py", line 167, in mainloop retvalue = do_guarded() File "/xyz/seedboxtools-1.2.11/src/seedboxtools/leecher.py", line 151, in do_guarded remove_finished=opts.remove_finished File "/xyz/seedboxtools-1.2.11/src/seedboxtools/leecher.py", line 12, in download for torrent, status, filename in client.get_files_to_download(): File "/xyz/seedboxtools-1.2.11/src/seedboxtools/clients.py", line 45, in get_files_to_download torrents = self.get_finished_torrents() File "/xyz/seedboxtools-1.2.11/src/seedboxtools/clients.py", line 241, in get_finished_torrents assert r.status_code == 200, "Non-OK status code while retrieving get_finished_torrents: %r"%r.status_code AssertionError: Non-OK status code while retrieving get_finished_torrents: 404

Do you have any ideas ?

thanks,

— Reply to this email directly or view it on GitHub.

claudiotassini commented 10 years ago

Hi,

I have this exact same problem, too. I updated to the latest version in the repository (1.2.12), but still cannot connect to my pulsedmedia seed box..

thank you in advance

claudiotassini commented 10 years ago

Here's the traceback: badger@neptune:~$ leechtorrents Starting download of finished torrents Traceback (most recent call last): File "/usr/local/bin/leechtorrents", line 5, in pkg_resources.run_script('seedboxtools==1.2.12', 'leechtorrents') File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1394, in run_script execfile(script_filename, namespace, namespace) File "/usr/local/lib/python2.7/dist-packages/seedboxtools-1.2.12-py2.7.egg/EGG-INFO/scripts/leechtorrents", line 10, in sys.exit(mainloop()) File "/usr/local/lib/python2.7/dist-packages/seedboxtools-1.2.12-py2.7.egg/seedboxtools/leecher.py", line 167, in mainloop retvalue = do_guarded() File "/usr/local/lib/python2.7/dist-packages/seedboxtools-1.2.12-py2.7.egg/seedboxtools/leecher.py", line 151, in do_guarded remove_finished=opts.remove_finished File "/usr/local/lib/python2.7/dist-packages/seedboxtools-1.2.12-py2.7.egg/seedboxtools/leecher.py", line 12, in download for torrent, status, filename in client.get_files_to_download(): File "/usr/local/lib/python2.7/dist-packages/seedboxtools-1.2.12-py2.7.egg/seedboxtools/clients.py", line 45, in get_files_to_download torrents = self.get_finished_torrents() File "/usr/local/lib/python2.7/dist-packages/seedboxtools-1.2.12-py2.7.egg/seedboxtools/clients.py", line 241, in get_finished_torrents assert r.status_code == 200, "Non-OK status code while retrieving get_finished_torrents: %r"%r.status_code AssertionError: Non-OK status code while retrieving get_finished_torrents: 404

Rudd-O commented 10 years ago

After not being able to reproduce, I strongly suspect that there is a misconfiguration in your configuration file. What mechanism works for you in order to help you fix this thing? I will soon be pushing an update to master in this repository, which will produce a better error message.

Rudd-O commented 10 years ago

I have pushed a new commit to master that will help you diagnose the issue more effectively.

Rudd-O commented 10 years ago

Did it work for you?

Rudd-O commented 9 years ago

I am speculatively closing this issue presuming that this was fixed a few months ago. Please reopen if you feel that the problem was not solved.