JohnDoee / autotorrent

Matches torrents with files and gets them seeded
MIT License
269 stars 34 forks source link

Tranmission SSL error #24

Closed gittyVenison closed 5 years ago

gittyVenison commented 5 years ago

HTTPSConnectionPool(host='127.0.0.1', port=9093): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version number')],)",),))

SSL is given via letsencrypt URL = url = https://name:pass@127.0.0.1:9093

JohnDoee commented 5 years ago

SSL and Python has been a headache for some time.

Can you try autotorrent-env/bin/pip install ndg-httpsclient and see if that fixes it?

gittyVenison commented 5 years ago

Same error this is the full error 'Traceback (most recent call last): File "/usr/local/bin/autotorrent", line 11, in sys.exit(commandline_handler()) File "/usr/local/lib/python3.6/dist-packages/autotorrent/cmd.py", line 266, in commandline_handler proxy_test_result = client.test_connection() File "/usr/local/lib/python3.6/dist-packages/autotorrent/clients/transmission.py", line 106, in test_connection session_data = self.call('session-get') File "/usr/local/lib/python3.6/dist-packages/autotorrent/clients/transmission.py", line 47, in call r = self._call(method, kwargs) File "/usr/local/lib/python3.6/dist-packages/autotorrent/clients/transmission.py", line 41, in _call return requests.post(self.url, data=json.dumps({'method': method, 'arguments': kwargs}), headers={'X-Transmission-Session-Id': self._session_id}) File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 112, in post return request('post', url, data=data, json=json, kwargs) File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 58, in request return session.request(method=method, url=url, kwargs) File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 508, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 618, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 506, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='127.0.0.1', port=9093): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version number')],)",),))'

On Thu, Dec 20, 2018, 12:46 PM Anders Jensen notifications@github.com wrote:

SSL and Python has been a headache for some time.

Can you try autotorrent-env/bin/pip install ndg-httpsclient and see if that fixes it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JohnDoee/autotorrent/issues/24#issuecomment-449097526, or mute the thread https://github.com/notifications/unsubscribe-auth/Ar4yzWVeT1HMltkiVcuzyHbqSYszZvnCks5u69segaJpZM4Zcml9 .

JohnDoee commented 5 years ago

Autotorrent uses Transmission Web to control Transmission and, as far as I can see, that one doesn't support SSL natively.

So, try using http instead of https. If that doesn't work, make sure you're using the correct port.

JohnDoee commented 5 years ago

If this didn't fix it, feel free to re-open the issue.