mirror of
https://github.com/coleam00/Archon.git
synced 2025-12-31 20:00:22 -05:00
The embedding service wraps OpenAI AuthenticationError as EmbeddingAPIError, causing API key validation to fail silently instead of blocking operations. - Add specific handling for EmbeddingAPIError with 401 status codes - Detect authentication errors by checking for '401' and 'incorrect/invalid' keywords - Ensure API key validation properly blocks crawl operations - Add detailed logging to identify wrapped error types This fixes the issue where invalid API keys would start crawls that fail silently instead of showing immediate error messages in the UI.