Solutions to common problems like connection errors, API rate limits, and performance issues.
Troubleshooting Common Discord Bot Issues
Running into problems with your Discord bot? This guide covers the most common issues and their solutions. Our hosting platform is optimized for Discord bots, but sometimes configuration or code issues can cause problems.
Bot Won't Start
If your bot fails to start, check these common causes:
Invalid Token: Verify your Discord token is correct and hasn't expired
Missing Dependencies: Ensure all required libraries are installed
Port Issues: Discord bots don't need to listen on ports; remove server.listen() calls
Environment Variables: Check that all required environment variables are set
Check your bot's logs in the control panel for specific error messages.
Connection Issues
Connection problems can prevent your bot from appearing online:
Network Issues: Our DDoS protection might occasionally block connections; contact support
Token Permissions: Ensure your bot has proper permissions in the Discord Developer Portal
Intents: For discord.js v14+, make sure intents are properly configured
Rate Limiting: Implement proper rate limiting to avoid being blocked by Discord
Performance Issues
If your bot is slow or unresponsive:
Resource Limits: Check if you're hitting RAM or CPU limits; consider upgrading your plan
Inefficient Code: Optimize your bot's code, especially database queries and loops
Memory Leaks: Monitor memory usage and fix any leaks in your code
Too Many Servers: Large bots might need more resources; monitor server count vs. performance
Command Not Working
If specific commands aren't responding:
Event Handlers: Ensure your event listeners are properly registered
Permissions: Check bot permissions in the server and channel
Prefix Issues: Verify the command prefix is correct
Case Sensitivity: Commands might be case-sensitive
API Rate Limits
Discord has strict rate limits to prevent abuse:
Global Rate Limit: 50 requests per second globally
Per-Route Limits: Vary by endpoint (check Discord API docs)
Implement Rate Limiting: Use libraries like discord.js built-in rate limiting
Queue Requests: Implement request queuing for high-traffic bots
Rate Limit Tip
If you're hitting rate limits frequently, consider implementing exponential backoff and request queuing in your bot's code.
Database Issues
Common database-related problems:
Connection Errors: Verify database credentials and connection strings
Timeout Issues: Increase timeout values for slow queries
Memory Issues: Large datasets might exceed available RAM
Concurrent Connections: Check connection pool limits
File Upload Problems
If file uploads aren't working:
File Size Limits: Discord limits file sizes (8MB for regular, 50MB for nitro)
Permissions: Bot needs "Attach Files" permission
File Types: Some file types might be blocked
Network Issues: Large files might timeout on slow connections
Debugging Tools
Use these tools to diagnose issues:
Console Logs: Check your bot's console output in the control panel
Discord Developer Portal: Monitor bot status and debug information
Uptime Monitoring: Use our built-in monitoring tools
Performance Metrics: Monitor RAM, CPU, and network usage
Getting Help
If you can't resolve the issue yourself:
Check our other knowledgebase articles for specific guides
Search our Discord server for similar issues
Create a support ticket with detailed information
Include error logs, your bot's code, and steps to reproduce
Support
Our support team is available 24/7 to help with complex issues. When creating a ticket, please include as much detail as possible about the problem and what you've already tried.
For more help, visit our Discord server at https://discord.gg/fynix or create a ticket at https://billing.fynix.host/submitticket.php.