Skip to content

Socks support issue #12

@japa-fi

Description

@japa-fi

Thanks for including the missing dependancies for proxy support.
There is still problem with the proxy support.

Basically did following:

japa-fi@mycloudhost:# screen
(window 1):
japa-fi@mycloudhost:
# ssh my-finnish.host.fi -D 3080
(connected ok)
(open new terminal in screen)
japa-fi@mycloudhost:~# docker run --rm -ti -u=$(id -u):$(id -g) -v "$(pwd)":/out taskinen/yle-dl https://areena.yle.fi/1-50724762 --proxy socks5://127.0.0.1:3080

yle-dl 20210808: Download media files from Yle Areena and Elävä Arkisto
Copyright (C) 2009-2021 Antti Ajanki antti.ajanki@iki.fi, license: GPLv3

Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/socks.py", line 787, in connect
super(socksocket, self).connect(proxy_addr)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/urllib3/contrib/socks.py", line 96, in _new_conn
conn = socks.create_connection(
File "/usr/lib/python3.9/site-packages/socks.py", line 209, in create_connection
raise err
File "/usr/lib/python3.9/site-packages/socks.py", line 199, in create_connection
sock.connect((remote_host, remote_port))
File "/usr/lib/python3.9/site-packages/socks.py", line 47, in wrapper
return function(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/socks.py", line 800, in connect
raise ProxyConnectionError(msg, error)
socks.ProxyConnectionError: Error connecting to SOCKS5 proxy 127.0.0.1:3080: [Errno 111] Connection refused

rinse repeat couple of connection refused errors.

Testing with curl, I could verify the socks5 proxy was operational.
japa-fi@mycloudhost:~# curl https://areena.yle.fi/1-50724762 --proxy socks5://localhost:3080
(the page was fetched)

Appreciate if you can have a look at this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions