HIGH: Missing Error Handling in API Calls #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When external API calls fail (LLM, memory, TTS, STT), errors are often swallowed or cause uncaught exceptions. This leads to silent failures or bot crashes.
Where It Occurs
Why This Is a Problem
What Can Go Wrong
Scenario 1: LLM API Timeout
Scenario 2: TTS API Rate Limit
Proposed Fix
Wrap all API calls in try/except with retry logic and user feedback.
Severity
HIGH - Unhandled API errors cause bot crashes and silent failures.
Files Affected
bot/utils/llm.py, bot/utils/memory_consolidation.py, bot/api.py, bot/utils/evie_tts.py