Skip to content

[BUG] WhatsApp bot silently drops error notification failures #1523

@deepak0x

Description

@deepak0x

1. Describe the bug

When message processing fails in the WhatsApp bot, it tries to notify the user with an error message. If that send also fails (expired token, rate limit, network problem), a bare except: pass at whatsapp_bot.py:460 eats the exception. Nothing gets logged. If WhatsApp sends are broken across the board, users stop getting responses and there's zero signal in the logs about why.

2. To reproduce

  1. Start the WhatsApp bot
  2. Trigger a processing error (e.g., point it at a dead MCP server)
  3. Revoke the WhatsApp access token so sends fail too
  4. Check logs — the original processing error is there, but the failed notification attempt isn't

3. Expected behavior

The failed send should show up in logs. Something like logger.error(f"Failed to notify user: {e}").

4. Environment

  • Affected MCP Server Name: mcp-clients (WhatsApp bot)
  • MCP Server Version/Commit: main HEAD
  • Klavis Service:
    • Self-hosted

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