Skip to content

Add health endpoint - 405 Method not allowed #1438

@Alwinius

Description

@Alwinius

Before upgrading to version 12, a basic HTTP GET request to the running bot would return 200 OK with an empty response body. Now, I get 405 Method Not Allowed. I used this for my monitoring to regularly check if the bot is responsive to requests. Ideally, there would be some kind of health endpoint, which only returns 200 OK if the bot is really ok to process incoming messages from Telegram servers, but an endpoint that returns OK all the time (maybe there is already one?) would help me fix my monitoring, too.

Version of Python, python-telegram-bot & dependencies:

$ python -m telegram python-telegram-bot 12.0.0b1 certifi 2018.11.29 future 0.17.1 Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions