previous rtorrent URL invalid after year-late upgrade
Before submitting your issue:
Added traceback in clients/rtorrent.py
index 420b94c..a3639fc 100644 --- a/sickrage/clients/rtorrent.py +++ b/sickrage/clients/rtorrent.py @@ -172,6 +172,7 @@ class rTorrentAPI(GenericClient): else: return False, 'Error: Unable to get ' + self.name + ' Authentication, check your config!' except Exception: + sickrage.app.log.debug(traceback.format_exc()) return False, 'Error: Unable to connect to ' + self.name
I updated my docker configs recently (from 9.4.4x-ish) and it seems it mostly ingested my config properly. sickrage complains about not being able to connect to my socat container that converts the TCP connection to a Unix Socket to talk to the actual rtorrent client.
The /config/search/#torrent-clients page balks at the previously working 'scgi://socat:5000/' by saying 'Please fill in a valid URL.'...
This URI was working back in the 9.4.4x version and I've never run a web server RPC2 proxy on top of rtorrent.
docker - python:3.7-alpine3.9 urllib3 1.24.1
Steps to reproduce
socat -d TCP-LISTEN:5000,fork UNIX-CONNECT:/root/scgi.sock map /root/scgi.sock in docker container to rtorrent scgi socket
What is the current bug behavior?
Get message 'Error: Unable to connect to rTorrent'
What is the expected correct behavior?
Should consider URL valid and connect.
Relevant logs and/or screenshots
File "/opt/sickrage/sickrage/clients/rtorrent.py", line 168, in test_authentication self._get_auth() File "/opt/sickrage/sickrage/clients/rtorrent.py", line 52, in _get_auth self.auth = RTorrent(self.host, None, , True) File "/opt/sickrage/sickrage/libs/rtorrentlib/__init__.py", line 59, in __init__ self.schema = urllib.splittype(uri) AttributeError: module 'urllib' has no attribute 'splittype'
looks like the new py3 urllib isn't being accounted for.