Common Issues
Authentication failed - Invalid API key
Authentication failed - Invalid API key
Error Message:Solutions:
- Check that your API key is correct and valid
- Ensure your API key has not expired
- Verify you’re using the correct API key for the service (Claude, OpenAI, etc.)
- Make sure your API key is properly formatted with no extra spaces
- Re-save your API key using:
Git not found or not a Git repository
Git not found or not a Git repository
Error Message:orSolutions:
- Ensure Git is installed on your system:
- If Git is not installed:
- macOS:
brew install git - Ubuntu/Debian:
sudo apt-get install git - Windows: Download from git-scm.com
- macOS:
- Make sure you’re running GitWhisper from inside a Git repository
- Initialize a Git repository if needed:
No staged changes found
No staged changes found
Error Message:Solutions:
- Stage your changes manually:
- Or stage specific files:
- Enable automatic staging:
- Then run GitWhisper again:
Request too large - Diff size exceeds limits
Request too large - Diff size exceeds limits
Error Message:Solutions:
- GitWhisper automatically handles large diffs by processing files individually
- Adjust the max diff size threshold:
- Break your changes into smaller, focused commits
- Exclude large files from staging:
- Use
.gitignoreto exclude unnecessary files - Consider committing one file at a time for very large changes
Large files detected (>10MB)
Large files detected (>10MB)
Error Message:Solutions:
- GitWhisper automatically detects files >10MB to prevent accidental commits
- Review the large files listed in the warning
- If the file should not be committed:
- Consider using Git LFS for large files:
- Adjust the size threshold if needed in
~/.git_whisper.yaml
Rate limit exceeded
Rate limit exceeded
Error Message:Solutions:
- Wait before retrying (usually indicated in the error message)
- Reduce the frequency of your requests
- Consider upgrading your API plan for higher limits
- Try using a different AI model temporarily:
- The free model has these limits:
- 8k chars per request
- 60 requests per hour
- 10 requests per minute
Permission denied - Insufficient access
Permission denied - Insufficient access
Error Message:Solutions:
- Check your API key permissions with your provider
- Ensure your account has access to the specified model
- Verify your account is in good standing
- Check if billing is enabled for your account
- Some models require specific tier access - check your provider’s documentation
Model not found or invalid variant
Model not found or invalid variant
Error Message:Solutions:
- List available models:
- List available variants for a model:
- Check your spelling of the model name
- Ensure you’re using the correct variant format
- Update to the latest version of GitWhisper:
Server error or service temporarily unavailable
Server error or service temporarily unavailable
Git push failed
Git push failed
Error Message:orSolutions:
- Check if you have a remote configured:
- Add a remote if missing:
- Ensure you have push permissions for the repository
- Check your SSH keys or authentication:
- For HTTPS, ensure your credentials are correct
- Try pushing manually first to diagnose the issue
Configuration file issues
Configuration file issues
Error Message:orSolutions:
- Check if your config file exists:
- Verify the YAML format is valid
- If corrupted, you can delete and recreate it:
- Re-save your API keys:
- View your full configuration:
Ollama connection issues
Ollama connection issues
Error Message:Solutions:
- Ensure Ollama is running:
- Check if Ollama is accessible:
- Verify your base URL configuration:
- If using a custom port, update the base URL accordingly
- No API key is required for Ollama
- Check that the model is pulled:
Editor issues when editing commit messages
Editor issues when editing commit messages
Error Message:Solutions:
- GitWhisper uses your Git editor configuration
- Check your editor setup:
- Set your preferred editor:
- Alternatively, set the EDITOR environment variable:
- Make sure the editor command is available in your PATH
Multi-language commit messages not working
Multi-language commit messages not working
Issue:
Commit messages are always generated in English despite setting a different language.Solutions:
- Set your preferred language:
- Verify language is saved in config:
- Note: Commit types (feat:, fix:) and emojis remain in English for compatibility
- Only the description is translated
- Example in Spanish:
Insufficient balance or credits
Insufficient balance or credits
Error Message:Solutions:
- Add funds to your API provider account
- Check your billing information with the provider
- Verify your payment method is valid
- Review your usage limits and quotas
- Consider switching to the free model temporarily:
- Check your account dashboard:
- OpenAI: platform.openai.com
- Anthropic: console.anthropic.com
- Google: console.cloud.google.com
Getting More Help
If you’re experiencing an issue not listed here:- Check the logs: Look for detailed error messages in your terminal output
- Update GitWhisper: Ensure you’re using the latest version
- Search existing issues: GitHub Issues
- Open a new issue: Create an issue with:
- Error messages (with API keys redacted)
- Your GitWhisper version (
gw --version) - Your OS and Git version
- Steps to reproduce the issue
- Join discussions: GitHub Discussions
Debug Tips
- Run with verbose output to see more details
- Check your configuration:
gw show-config - View default settings:
gw show-defaults - Test with the free model first to isolate API-related issues
- Verify Git is working:
git statusandgit diff --cached - Check file permissions on
~/.git_whisper.yaml(should be 600 on Unix systems)