ralphwetzel / theonionbox

Dashboard to monitor Tor node operations
MIT License
121 stars 17 forks source link

Not supported proxy scheme socks5 #27

Closed alexanderkent closed 7 years ago

alexanderkent commented 7 years ago

BOX | Onionoo: Failed querying 'http://onionoorcazzotwa.onion/weights' -> Not supported proxy scheme socks5

Yet, curl -v --socks5 52.175.226.63:9050 https://check.torproject.org | grep -i "Your IP" works!

Any ideas? Tried python2.7 and python3.

ralphwetzel commented 7 years ago

Hi! Most probably you get this error message because the requests package is outdated. This hint (Q&A at the end of the file; link might not work as expected) perhaps can help you to solve the issue. Greetings, Ralph

ralphwetzel commented 7 years ago

And ... there seems to be a bug in the 3.2.1 code: onionoo.py, line 612:

proxies = {}
if proxy is not None:
    proxies = {
        'http': 'socks5://' + proxy,
        'https': 'socks5://' + proxy
    }

should be

proxies = {}
if proxy is not None:
    proxies = {
        'http': 'socks5h://' + proxy,
        'https': 'socks5h://' + proxy
    }

This will be fixed with the next release (4.0). Ralph

alexanderkent commented 7 years ago

Thanks that partially helped. The error went away but the metrics still don't load for me.