Telegram channel broken in latest update
See original GitHub issueRasa version: rasa/rasa:latest-full from docker-hub https://hub.docker.com/r/rasa/rasa/builds (https://github.com/RasaHQ/rasa/tree/f3480aa384740c58d4b98f6498938faecf39bbe1)
Python version: 3.6
Operating system (windows, osx, …): docker
Issue: After latest update rasa can’t start up with telegram connector.
Error (including full traceback):
rasa_1 | 2019-07-30 03:32:07 DEBUG telegram.vendor.ptb_urllib3.urllib3.connectionpool - https://api.telegram.org:443 "POST /bot<cut>/setWebhook HTTP/1.1" 429 109
rasa_1 | Traceback (most recent call last):
rasa_1 | File "/usr/local/bin/rasa", line 10, in <module>
rasa_1 | sys.exit(main())
rasa_1 | File "/usr/local/lib/python3.6/site-packages/rasa/__main__.py", line 76, in main
rasa_1 | cmdline_arguments.func(cmdline_arguments)
rasa_1 | File "/usr/local/lib/python3.6/site-packages/rasa/cli/run.py", line 88, in run
rasa_1 | rasa.run(**vars(args))
rasa_1 | File "/usr/local/lib/python3.6/site-packages/rasa/run.py", line 55, in run
rasa_1 | **kwargs
rasa_1 | File "/usr/local/lib/python3.6/site-packages/rasa/core/run.py", line 165, in serve_application
rasa_1 | log_file=log_file,
rasa_1 | File "/usr/local/lib/python3.6/site-packages/rasa/core/run.py", line 106, in configure_app
rasa_1 | rasa.core.channels.channel.register(input_channels, app, route=route)
rasa_1 | File "/usr/local/lib/python3.6/site-packages/rasa/core/channels/channel.py", line 72, in register
rasa_1 | app.blueprint(channel.blueprint(handler), url_prefix=p)
rasa_1 | File "/usr/local/lib/python3.6/site-packages/rasa/core/channels/telegram.py", line 242, in blueprint
rasa_1 | out_channel.setWebhook(self.webhook_url)
rasa_1 | File "/usr/local/lib/python3.6/site-packages/telegram/bot.py", line 65, in decorator
rasa_1 | result = func(self, *args, **kwargs)
rasa_1 | File "/usr/local/lib/python3.6/site-packages/telegram/bot.py", line 2070, in set_webhook
rasa_1 | result = self._request.post(url_, data, timeout=timeout)
rasa_1 | File "/usr/local/lib/python3.6/site-packages/telegram/utils/request.py", line 309, in post
rasa_1 | headers={'Content-Type': 'application/json'})
rasa_1 | File "/usr/local/lib/python3.6/site-packages/telegram/utils/request.py", line 216, in _request_wrapper
rasa_1 | message = self._parse(resp.data)
rasa_1 | File "/usr/local/lib/python3.6/site-packages/telegram/utils/request.py", line 174, in _parse
rasa_1 | raise RetryAfter(retry_after)
rasa_1 | telegram.error.RetryAfter: Flood control exceeded. Retry in 1 seconds
it-sd-bot_rasa_1 exited with code 1
I guess, problem ocurred because of duplicating setWebhook
:
https://github.com/RasaHQ/rasa/blob/master/rasa/core/channels/telegram.py#L242
and
https://github.com/RasaHQ/rasa/blob/master/rasa/core/channels/telegram.py#L247
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Telegram outages reported in the last 24 hours - Downdetector
Real-time status and problems for Telegram. Is the app not working? Can't send or read messages? Here you see what is going on....
Read more >Fixing This Channel Can't Be Displayed in Telegram - Alphr
If a Telegram channel is taken down, you'll see the “This channel cannot be displayed” message when you open it. Depending on the...
Read more >6 Ways to Fix "This Channel Cannot Be Displayed" Issue in ...
Here are the five best ways by following which you can solve Fix "This Channel Cannot Be Displayed" Issue in Telegram.
Read more >How To Fix Telegram Channel Updating... Problem Solved
How To Fix Telegram Channel Updating... Problem Solved · Go to your phone's Settings. Then search for Date and Time. · Then find...
Read more >How to Fix "This channel can't be displayed" on Telegram
To fix “This channel can't be displayed” on Telegram, you need to download the desktop version of Telegram. ... Next, open Telegram Desktop...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@selphe I am fixing this issue in https://github.com/RasaHQ/rasa/pull/4171 . Sorry for not using your pr, but I had to remove the
setWebhook
at another location (the one you removed is actually needed for another feature)Hi @wochinge I didn’t change the credentials.yml before update. Yes, when this line commented, tg channel is up, messages is sent correctly.