Troubleshooting Guide
Troubleshooting Guide
This guide helps you resolve common issues and get the most out of Study Buddy.
Quick Diagnostics
âś… Health Check
Before troubleshooting specific issues, verify your basic setup:
- Check Settings: Go to Settings page and verify:
- AI Provider is configured with valid API key
- Search Engine is selected and configured
- Default Education Level is set
- Test Connection: In Settings:
- Use “Test Connection” for AI provider
- Try a simple search to verify search engine
- Save settings and restart if needed
- Network Connection: Ensure stable internet access for external services
Common Issues
đźš« AI Provider Issues
“API Key Required” Error
Symptoms: Error message when trying to chat Solution:
- Go to Settings page
- Select your AI provider (OpenAI, Together AI, or Custom)
- Enter valid API key
- Click “Test Connection” to verify
- Save settings
Getting API Keys:
- OpenAI: Visit platform.openai.com
- Together AI: Visit api.together.xyz
“Connection Failed” Error
Symptoms: Unable to connect to AI service Potential Causes & Solutions:
- Invalid API Key:
- Verify key is correctly copied (no extra spaces)
- Check if key has been revoked or expired
- Ensure API key has sufficient credits/quota
- Network Issues:
- Check internet connection
- Try different network (mobile hotspot)
- Verify no firewall blocking connections
- Service Outage:
- Check provider status pages:
- Try again after service restoration
- Custom Endpoint Issues:
- Verify Base URL is correct and accessible
- Ensure endpoint is OpenAI-compatible
- Check if authentication headers are correct
“Model Not Found” Error
Symptoms: Error when using specific model Solution:
- Go to Settings → AI Provider
- Click “Discover Models” to refresh available models
- Select a different model from the list
- Some models may require special access or higher pricing tiers
🔍 Search Engine Issues
“Search Failed” Error
Symptoms: No search results, search error messages Solutions by Engine:
Bing Search:
- Verify Bing API key in Settings
- Check API key quota and billing status
- Ensure key has Web Search API access
Serper (Google):
- Verify Serper API key
- Check credit balance at serper.dev
- Ensure API key permissions are correct
DuckDuckGo:
- No API key required
- If blocked, try switching to different search engine
- Wait a few minutes and try again (rate limiting)
SearXNG:
- Verify server URL is correct and accessible
- Ensure SearXNG instance is running and public
- Try different SearXNG instance: searx.space
- Check if instance allows API access
Brave Search:
- Verify Brave API key
- Check API quota at api.search.brave.com
“Rate Limited” Errors
Symptoms: “Too many requests” or 429 errors Solutions:
- Wait 30-60 seconds before trying again
- Switch to different search engine temporarily
- For SearXNG: Use different instance or self-host
🖥️ Application Issues
App Won’t Start
Windows:
- Right-click installer → “Run as Administrator”
- Check Windows Defender/antivirus exclusions
- Install Visual C++ Redistributables if missing
- Try portable version instead of installer
macOS:
- Right-click app → “Open” to bypass Gatekeeper
- Go to System Preferences → Security & Privacy → Allow app
- For Apple Silicon: Ensure you downloaded correct version
Linux:
- Make AppImage executable:
chmod +x StudyBuddy.AppImage - Install FUSE if missing:
sudo apt install fuse - Try running from terminal to see error messages
Slow Performance
Symptoms: App feels sluggish, slow responses Solutions:
- Check RAM Usage: Close other applications
- Internet Speed: Test with speedtest.net
- AI Model: Try faster models (GPT-3.5 vs GPT-4)
- Search Engine: Switch to faster option (Bing vs SearXNG)
- Restart App: Fresh restart can clear memory issues
Settings Not Saving
Symptoms: Settings reset after app restart Solutions:
- Permissions: Ensure app can write to user directory
- Antivirus: Check if security software blocks file writes
- Disk Space: Verify sufficient space for config files
- File Corruption: Delete settings file and reconfigure:
- Windows:
%APPDATA%/study-buddy/ - macOS:
~/Library/Application Support/study-buddy/ - Linux:
~/.config/study-buddy/
- Windows:
đź’¬ Chat Interface Issues
Messages Not Sending
Symptoms: Text entered but no response Checklist:
- Verify AI provider is configured in Settings
- Check internet connection
- Try shorter message (some models have limits)
- Clear browser cache if using web version
- Restart application
Incomplete Responses
Symptoms: AI responses cut off mid-sentence Possible Causes:
- Token Limits: Model hit response length limit
- Try asking for shorter response
- Break complex questions into parts
- Network Timeout: Connection interrupted
- Refresh and try again
- Check internet stability
- Provider Issues: Temporary service degradation
- Wait and retry in few minutes
Poor Response Quality
Symptoms: Irrelevant or low-quality answers Improvements:
- Be More Specific: Include context and specific questions
- Set Education Level: Match your knowledge level
- Try Different Model: Some models perform better for certain topics
- Rephrase Question: Different wording can yield better results
- Enable Search: Ensure search engine is configured for current information
Error Messages
API Error Codes
HTTP 401 Unauthorized
- Cause: Invalid or missing API key
- Solution: Check API key in Settings, ensure it’s correct
HTTP 403 Forbidden
- Cause: API key lacks permissions or is banned
- Solution: Check API key permissions, contact provider if needed
HTTP 429 Too Many Requests
- Cause: Rate limit exceeded
- Solution: Wait before retrying, upgrade API plan if needed
HTTP 500 Internal Server Error
- Cause: Provider service issue
- Solution: Try again later, check provider status page
HTTP 503 Service Unavailable
- Cause: Service temporarily down
- Solution: Wait and retry, check provider status
Application Error Messages
“Failed to Load Settings”
Solutions:
- Check file permissions in config directory
- Delete corrupted settings file and reconfigure
- Run app as administrator (Windows) or with sudo (Linux)
“Model Discovery Failed”
Solutions:
- Verify API key and connection
- Try manual model entry instead of discovery
- Check if provider supports model listing API
“Search Configuration Error”
Solutions:
- Verify search engine settings
- Test search engine independently
- Switch to different search provider
Performance Optimization
Speed Up Responses
- Use Faster Models:
- OpenAI: GPT-3.5-turbo (faster) vs GPT-4 (more accurate)
- Together AI: Smaller models respond faster
- Optimize Search:
- Disable search for simple questions
- Use faster search engines (Bing > SearXNG)
- Limit search results in custom configurations
- Network Optimization:
- Use wired connection instead of Wi-Fi
- Close bandwidth-heavy applications
- Consider VPN if provider is geographically distant
Reduce Resource Usage
- Memory Management:
- Restart app periodically for long sessions
- Close other browser tabs (web version)
- Use lighter search engines
- Disk Space:
- Clear conversation history if needed
- Manage cache files in app directory
Advanced Troubleshooting
Debug Mode
Enable detailed logging for complex issues:
- Electron App:
- Windows: Run from Command Prompt to see logs
- macOS/Linux: Run from Terminal
- Web Version:
- Open browser Developer Tools (F12)
- Check Console tab for error messages
Configuration Reset
If all else fails, reset to defaults:
- Backup Current Settings: Note your API keys
- Delete Config Directory:
- Windows:
%APPDATA%/study-buddy/ - macOS:
~/Library/Application Support/study-buddy/ - Linux:
~/.config/study-buddy/
- Windows:
- Restart App: Reconfigure from scratch
Network Diagnostics
For connection issues:
# Test API endpoints
curl -H "Authorization: Bearer YOUR_API_KEY" https://api.openai.com/v1/models
# Test search services
curl "https://api.bing.microsoft.com/v7.0/search?q=test"
# Check DNS resolution
nslookup api.openai.com
Getting Help
Self-Service Resources
- Documentation: Check other guides in this docs folder
- Settings Page: Built-in help text and examples
- About Page: Version info and feature descriptions
Community Support
- GitHub Issues: Report bugs or ask questions
- Discussions: Community Q&A
- Feature Requests: Suggest improvements
When Reporting Issues
Include these details:
- Operating System: Windows/macOS/Linux version
- App Version: Found in About page
- Error Messages: Exact text of any errors
- Steps to Reproduce: What you did before the issue
- Configuration: Which AI provider and search engine
- Screenshots: If visual issues are involved
Privacy Note
When seeking help:
- Never share API keys publicly
- Don’t include personal conversation content
- Use generic examples when describing issues
Can’t find a solution? Visit our GitHub repository for additional support and to report new issues.