Troubleshooting
Authentication
Learn how to troubleshoot authentication errors when using Polyglot.
One of the most common issues when working with LLM APIs is authentication problems.
Symptoms
- Error messages containing terms like “authentication failed,” “invalid API key,” or “unauthorized”
- HTTP status codes 401 or 403
Solutions
- Verify API Key: Ensure your API key is correctly set in your environment variables
- Check API Key Format: Some providers require specific formats for API keys
- Test Keys Directly: Use a simple script to test your API keys
- Environment Variables: Ensure your environment variables are being loaded correctly