Skip to content

Webhook broken pipe results in dispatcher stopping #969

@yusufk

Description

@yusufk

Steps to reproduce

updater = Updater(TOKEN) PORT = int(os.environ.get('PORT', '5000')) # add handlers updater.start_webhook(listen="0.0.0.0", port=PORT, url_path=TOKEN) updater.bot.set_webhook("https://home.co.za/" + TOKEN) dp = updater.dispatcher dp.add_error_handler(error) updater.idle()

Expected behaviour

Bot should run continuously and be responsive.

Actual behaviour

Bot becomes unresponsive after a random amount of time, usually a few hours.

Configuration

Operating System:

Version of Python, python-telegram-bot & dependencies:
Linux Cappucino 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:50 UTC 2017 i686 athlon i686 GNU/Linux
python-telegram-bot 7.0.1
certifi 2017.07.27.1
future 0.16.0
Python 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609]

Logs

https://pastebin.com/KbatbwHg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions