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

DelugeRPC does not handle invalid credentials gracefully #271

Open
fourbytes opened this issue Aug 16, 2018 · 2 comments
Open

DelugeRPC does not handle invalid credentials gracefully #271

fourbytes opened this issue Aug 16, 2018 · 2 comments

Comments

@fourbytes
Copy link

fourbytes commented Aug 16, 2018

When the given deluge username/password are incorrect, watcher will appear to connect successfully when pressing test, however when saving, it will throw an Unable to retrieve download path. error.

Test console:

>>> client.call('core.get_config')
b'Auth level too low: 0 < 5'
>>> client.call('core.get_config')[b'download_location'].decode('utf-8')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: byte indices must be integers or slices, not bytes

Actual Watcher3 log:

INFO [2018-08-17 02:10:13,472] core.ajax.get_log_text.512: Dumping log file log.txt to text.
TypeError: byte indices must be integers or slices, not bytes
def_download_path = client.call('core.get_config')[b'download_location'].decode('utf-8')
File "/app/watcher/core/downloaders/DelugeRPC.py", line 71, in add_torrent
Traceback (most recent call last):
ERROR [2018-08-17 02:08:54,665] core.downloaders.DelugeRPC.add_torrent.73: Unable to get download path.
INFO [2018-08-17 02:08:54,658] core.downloaders.DelugeRPC.add_torrent.51: Sending torrent >torrent<.
@nosmokingbandit
Copy link
Owner

Looks like the deluge user doesn't have proper permission.

https://dev.deluge-torrent.org/wiki/UserGuide/Authentication

You'll want to edit Deluge's config to give your user at leave level 5 authentication. It might need 10, but I don't think so. I haven't used Deluge in a long time.

@fourbytes
Copy link
Author

Yea, I actually had the username incorrect, the main issue was more that the connection test should never really succeed, as it's quite misleading.

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