Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements a Proxy Integration #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Bart1909
Copy link
Owner

Now, you can use HTTP or SOCKS5 proxies with this bot.
In config.yaml under telegram add the two following lines:
http_proxy: http://user:[email protected]:3128
https_proxy: http://user:[email protected]:3128

If you are using SOCKS5 proxy, the lines looks like this:
http_proxy: socks5://user:[email protected]:3128
https_proxy: socks5://user:[email protected]:3128

Maybe you have to run the following line to install socks-compability:
pip install requests[socks]

Now, you can use HTTP or SOCKS5 proxies with this bot. 
In config.yaml under telegram add the two following lines:
http_proxy: http://user:[email protected]:3128
https_proxy: http://user:[email protected]:3128

If you are using SOCKS5 proxy, the lines looks like this:
http_proxy: socks5://user:[email protected]:3128
https_proxy: socks5://user:[email protected]:3128

Maybe you have to run the following line to install socks-compability:
pip install requests[socks]
@NickRimmer
Copy link

Hey! When I tried this "pip install requests[socks]", I got this )=

platformio 3.3.1 has requirement click<6,>=5, but you'll have click 6.7 which is incompatible.
octoprint 1.3.6 has requirement Click<6.3,>=6.2, but you'll have click 6.7 which is incompatible.
octoprint 1.3.6 has requirement pyserial<2.8,>=2.7, but you'll have pyserial 3.3 which is incompatible.
octoprint 1.3.6 has requirement requests<3,>=2.18.4, but you'll have requests 2. 17.3 which is incompatible.
octoprint 1.3.6 has requirement semantic_version<2.5,>=2.4.2, but you'll have se mantic-version 2.6.0 which is incompatible.

@NickRimmer
Copy link

NickRimmer commented May 5, 2018

Without installation socks-compability, I have error in Telegram-Octoprint plugin page:

Got an exception while initially trying to connect to telegram (Listener not running: Missing dependencies for SOCKS support.. Waiting 2 minutes before trying again.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants