Skip to content

Bot - Failed to fetch bots status: Button_data_invalid #47

@rapcmia

Description

@rapcmia

Describe the bug

While checking condor bot for this week, i see that the /bots menu does not work for my condor instance even ran it on source or docker build with an error of Error showing bots menu: Button_data_invalid.

Image

2026-03-23 03:26:51,515 - handlers.bots.menu - ERROR - Error showing bots menu: Button_data_invalid
Traceback (most recent call last):
  File "/app/handlers/bots/menu.py", line 199, in show_bots_menu
    await msg.reply_text(
  File "/app/.venv/lib/python3.12/site-packages/telegram/_message.py", line 2068, in reply_text
    return await self.get_bot().send_message(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/telegram/ext/_extbot.py", line 3115, in send_message
    return await super().send_message(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/telegram/_bot.py", line 1122, in send_message
    return await self._send_message(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/telegram/ext/_extbot.py", line 629, in _send_message
    result = await super()._send_message(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/telegram/_bot.py", line 819, in _send_message
    result = await self._post(
             ^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/telegram/_bot.py", line 703, in _post
    return await self._do_post(
           ^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/telegram/ext/_extbot.py", line 369, in _do_post
    return await super()._do_post(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/telegram/_bot.py", line 732, in _do_post
    result = await request.post(
             ^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/telegram/request/_baserequest.py", line 198, in post
    result = await self._request_wrapper(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.12/site-packages/telegram/request/_baserequest.py", line 375, in _request_wrapper
    raise exception
telegram.error.BadRequest: Button_data_invalid

What i found was the bot deployed via mcp may have triggered the issue due to generated long container name.

Image
  • The deploy itself completed however the /bots menu tries to call the full instance name and may have hit a limit and therefore cause the error
  • I stop and redeploy using condor's instance format and observed that it is now working as expected ✅
    Image

Steps to reproduce

  1. setup hummingbot-api with hummingbot-mcp
  2. deploy the bot via mcp
  3. check the bot deployed on condor

Attach required files

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions