Endogen / Telegram-Kraken-Bot

Python bot to trade on Kraken via Telegram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connection Error

staniya opened this issue · comments

I followed your instructions, but I keep getting a NetworkError. I configured the bot to run on Heroku webhook. Although, enabling and disabling webhook both generates the same error message attached below.

I replaced my bot's token with TOKEN
This is obviously not an error in my network because my other bots are operating fine.
Can you please help me out?

Traceback (most recent call last):
File "telegram_kraken_bot.py", line 2050, in
init_cmd(None, None)
File "telegram_kraken_bot.py", line 1802, in init_cmd
updater.bot.send_message(uid, msg, disable_notification=True, reply_markup=ReplyKeyboardRemove())
File "/Users/staniya/PycharmProjects/telegram-kraken-bot/telegram-kraken-bot/tkb/lib/python3.6/site-packages/telegram/bot.py", line 60, in decorator
result = func(self, *args, **kwargs)
File "/Users/staniya/PycharmProjects/telegram-kraken-bot/telegram-kraken-bot/tkb/lib/python3.6/site-packages/telegram/bot.py", line 85, in decorator
result = self._request.post(url, data, timeout=kwargs.get('timeout'))
File "/Users/staniya/PycharmProjects/telegram-kraken-bot/telegram-kraken-bot/tkb/lib/python3.6/site-packages/telegram/utils/request.py", line 272, in post
**urlopen_kwargs)
File "/Users/staniya/PycharmProjects/telegram-kraken-bot/telegram-kraken-bot/tkb/lib/python3.6/site-packages/telegram/utils/request.py", line 196, in _request_wrapper
raise NetworkError('urllib3 HTTPError {0}'.format(error))
telegram.error.NetworkError: urllib3 HTTPError HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /TOKEN/sendMessage (Caused by ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x1076b2048>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)'))

Yeah, the problem here is that this functionality isn't implemented yet... That's why you will find Not used yet for every config setting that has to do with webhook in the readme.

I kind of implemented it but never got it working, so it's not supported yet. But you can use the bot as a polling bot.

I'm sorry :-(