Files
archon/python
leex279 bb8a502932 fix: Handle wrapped OpenAI authentication errors in API key validation
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.
2025-09-12 20:07:38 +02:00
..