nickoala / telepot

Python framework for Telegram Bot API
MIT License
2.42k stars 474 forks source link

Connecting through a proxy with authentication results in 407 #327

Closed Vendarr closed 7 years ago

Vendarr commented 7 years ago

When trying to connect through a proxy following error occurs:

Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authentication Required',))

Changingheaders=h to proxy_headers=h in telepot.api.set_proxy works

https://github.com/shazow/urllib3

odadev commented 7 years ago

Same problem here. Thanks for that information. Now its working. Hope this error get fixed very soon.