Skip to content

Instantly share code, notes, and snippets.

@sid-r-singh
Created March 16, 2021 07:39
Show Gist options
  • Save sid-r-singh/790fa801b0d4717c6437750d56bcfaeb to your computer and use it in GitHub Desktop.
Save sid-r-singh/790fa801b0d4717c6437750d56bcfaeb to your computer and use it in GitHub Desktop.
2021-03-16T07:30:42.124218+00:00 heroku[web.1]: Starting process with command `python fresh_bot.py`
2021-03-16T07:30:45.862792+00:00 app[web.1]: 2021-03-16 07:30:45,862 - apscheduler.scheduler - INFO - Scheduler started
2021-03-16T07:30:46.230201+00:00 app[web.1]: 2021-03-16 07:30:46,229 - telegram.ext.updater - ERROR - Error while bootstrap set webhook: Bad webhook: webhook can be set up only on ports 80, 88, 443 or 8443
2021-03-16T07:30:46.230248+00:00 app[web.1]: 2021-03-16 07:30:46,229 - telegram.ext.updater - ERROR - Failed bootstrap phase after 0 retries (Bad webhook: webhook can be set up only on ports 80, 88, 443 or 8443)
2021-03-16T07:30:46.236940+00:00 app[web.1]: 2021-03-16 07:30:46,230 - telegram.ext.updater - ERROR - unhandled exception in Bot:1670826992:updater
2021-03-16T07:30:46.236942+00:00 app[web.1]: Traceback (most recent call last):
2021-03-16T07:30:46.236942+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 236, in _thread_wrapper
2021-03-16T07:30:46.236946+00:00 app[web.1]: target(*args, **kwargs)
2021-03-16T07:30:46.236947+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 602, in _start_webhook
2021-03-16T07:30:46.236947+00:00 app[web.1]: ip_address=ip_address,
2021-03-16T07:30:46.236947+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 674, in _bootstrap
2021-03-16T07:30:46.236948+00:00 app[web.1]: bootstrap_interval,
2021-03-16T07:30:46.236949+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 530, in _network_loop_retry
2021-03-16T07:30:46.236949+00:00 app[web.1]: onerr_cb(telegram_exc)
2021-03-16T07:30:46.236949+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 652, in bootstrap_onerr_cb
2021-03-16T07:30:46.236950+00:00 app[web.1]: raise exc
2021-03-16T07:30:46.236951+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 516, in _network_loop_retry
2021-03-16T07:30:46.236951+00:00 app[web.1]: if not action_cb():
2021-03-16T07:30:46.236951+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 640, in bootstrap_set_webhook
2021-03-16T07:30:46.236952+00:00 app[web.1]: drop_pending_updates=drop_pending_updates,
2021-03-16T07:30:46.236952+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/bot.py", line 127, in decorator
2021-03-16T07:30:46.236952+00:00 app[web.1]: result = func(*args, **kwargs)
2021-03-16T07:30:46.236953+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/bot.py", line 2863, in set_webhook
2021-03-16T07:30:46.236953+00:00 app[web.1]: result = self._post('setWebhook', data, timeout=timeout, api_kwargs=api_kwargs)
2021-03-16T07:30:46.236954+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/bot.py", line 260, in _post
2021-03-16T07:30:46.236955+00:00 app[web.1]: f'{self.base_url}/{endpoint}', data=data, timeout=effective_timeout
2021-03-16T07:30:46.236955+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/utils/request.py", line 354, in post
2021-03-16T07:30:46.236955+00:00 app[web.1]: **urlopen_kwargs,
2021-03-16T07:30:46.236955+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/utils/request.py", line 272, in _request_wrapper
2021-03-16T07:30:46.236956+00:00 app[web.1]: raise BadRequest(message)
2021-03-16T07:30:46.236956+00:00 app[web.1]: telegram.error.BadRequest: Bad webhook: webhook can be set up only on ports 80, 88, 443 or 8443
2021-03-16T07:30:46.236956+00:00 app[web.1]: Exception in thread Bot:1670826992:updater:
2021-03-16T07:30:46.236957+00:00 app[web.1]: Traceback (most recent call last):
2021-03-16T07:30:46.236957+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/threading.py", line 916, in _bootstrap_inner
2021-03-16T07:30:46.236957+00:00 app[web.1]: self.run()
2021-03-16T07:30:46.236958+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/threading.py", line 864, in run
2021-03-16T07:30:46.236958+00:00 app[web.1]: self._target(*self._args, **self._kwargs)
2021-03-16T07:30:46.236958+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 236, in _thread_wrapper
2021-03-16T07:30:46.236958+00:00 app[web.1]: target(*args, **kwargs)
2021-03-16T07:30:46.236959+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 602, in _start_webhook
2021-03-16T07:30:46.236959+00:00 app[web.1]: ip_address=ip_address,
2021-03-16T07:30:46.236959+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 674, in _bootstrap
2021-03-16T07:30:46.236960+00:00 app[web.1]: bootstrap_interval,
2021-03-16T07:30:46.236960+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 530, in _network_loop_retry
2021-03-16T07:30:46.236960+00:00 app[web.1]: onerr_cb(telegram_exc)
2021-03-16T07:30:46.236960+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 652, in bootstrap_onerr_cb
2021-03-16T07:30:46.236961+00:00 app[web.1]: raise exc
2021-03-16T07:30:46.236961+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 516, in _network_loop_retry
2021-03-16T07:30:46.236961+00:00 app[web.1]: if not action_cb():
2021-03-16T07:30:46.236961+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/updater.py", line 640, in bootstrap_set_webhook
2021-03-16T07:30:46.236962+00:00 app[web.1]: drop_pending_updates=drop_pending_updates,
2021-03-16T07:30:46.236962+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/bot.py", line 127, in decorator
2021-03-16T07:30:46.236962+00:00 app[web.1]: result = func(*args, **kwargs)
2021-03-16T07:30:46.236962+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/bot.py", line 2863, in set_webhook
2021-03-16T07:30:46.236963+00:00 app[web.1]: result = self._post('setWebhook', data, timeout=timeout, api_kwargs=api_kwargs)
2021-03-16T07:30:46.236963+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/bot.py", line 260, in _post
2021-03-16T07:30:46.236963+00:00 app[web.1]: f'{self.base_url}/{endpoint}', data=data, timeout=effective_timeout
2021-03-16T07:30:46.236964+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/utils/request.py", line 354, in post
2021-03-16T07:30:46.236964+00:00 app[web.1]: **urlopen_kwargs,
2021-03-16T07:30:46.236964+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/telegram/utils/request.py", line 272, in _request_wrapper
2021-03-16T07:30:46.236964+00:00 app[web.1]: raise BadRequest(message)
2021-03-16T07:30:46.236965+00:00 app[web.1]: telegram.error.BadRequest: Bad webhook: webhook can be set up only on ports 80, 88, 443 or 8443
2021-03-16T07:30:46.236965+00:00 app[web.1]:
2021-03-16T07:30:47.147637+00:00 app[web.1]: 2021-03-16 07:30:47,147 - telegram.ext.dispatcher - CRITICAL - stopping due to exception in another thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment