Troubleshooting Routes
Common issues with routes and how to fix them. Follow this guide to diagnose and resolve route problems quickly.Quick Diagnostics Checklist
Before diving into specific errors:Common HTTP Status Codes
404 Not Found
Meaning: Route not found or doesn’t existPossible Causes
1. Route name mismatch- Go to Routes → Find your route
- Toggle Enabled to ON
- Save
Debug Steps
401 Unauthorized
Meaning: Authentication failedPossible Causes
1. Invalid API key- Copy key again from dashboard
- Ensure no extra spaces or line breaks
- Verify key hasn’t been deleted
- Check key hasn’t expired
- Check route settings
- Match authentication method
- Either provide API key OR ensure IP is whitelisted
Debug Steps
403 Forbidden
Meaning: IP not authorized or permission deniedPossible Causes
1. IP not whitelisted Your IP address isn’t in the client list. Fix:- Navigate to Clients → Add Client
- Add your IP address
- Go to route → Environment Clients tab
- Assign client to appropriate environment
- Edit route
- Toggle Requires Clients to OFF
- Test request
- Re-enable after testing
- Go to route → Environment Clients
- Add your client to the environment
- Save
- Wait for rate limit to reset
- Request limit increase
- Optimize request frequency
Debug Steps
500 Internal Server Error
Meaning: KnoxCall encountered an error processing your requestPossible Causes
1. Secret not found Route tries to inject secret that doesn’t exist:- Navigate to Secrets
- Create the missing secret
- Update route configuration
- Check secret value format
- Update if needed
- Test route again
- Edit route
- Check JSON syntax in Header/Body Injection
- Use online JSON validator
- Save with valid JSON
Debug Steps
502 Bad Gateway
Meaning: Backend server is unreachable or returned invalid responsePossible Causes
1. Backend is down Your backend server isn’t running. Test:- Start your backend server
- Verify backend is running
- Check backend logs
- Edit route
- Check Target Base URL
- Verify URL is correct
- Include protocol:
https:// - Test URL directly:
curl https://your-backend.com
- Backend running on
localhost - Backend behind firewall
- Backend only accessible via VPN
- Private IP address used
- Deploy backend with public IP
- Open firewall rules for KnoxCall IPs
- Use VPN egress feature (Enterprise)
- Certificate expired
- Self-signed certificate
- Certificate domain mismatch
- Renew SSL certificate
- Use valid CA-signed certificate
- For testing: Disable SSL verification in route settings (not recommended for production)
- Check backend logs
- Ensure backend returns proper HTTP response
- Verify headers are correctly formatted
Debug Steps
504 Gateway Timeout
Meaning: Backend took too long to respondPossible Causes
1. Backend is slow Backend processing time exceeds timeout. Default timeout: 30 seconds Fix:- Edit route
- Increase Timeout setting
- Recommended max: 120 seconds
- Optimize backend performance
- Add caching
- Use async processing for long operations
- Slow response times
- High CPU/memory usage
- Database connection pool exhausted
- Scale backend (add more instances)
- Optimize database queries
- Add caching layer
- Enable rate limiting
- Optimize SQL queries
- Add database indexes
- Increase database resources
- Implement query timeout
- Use closer region (Multi-region feature)
- Optimize network path
- Consider CDN for static content
Debug Steps
Authentication Issues
”Invalid signature” errors
Using request signing? Causes:- Wrong signing secret
- Message format mismatch
- Timestamp too old/new
- Clock skew between client and server
OAuth2 token expired
Error:401 Unauthorized from backend
Causes:
- Access token expired
- Refresh token revoked
- OAuth2 secret needs reauthorization
- Go to Secrets → Select OAuth2 secret
- Check token status
- If expired, click Reauthorize
- Complete OAuth2 flow again
Connection Issues
”Connection refused”
Causes:- Backend not running
- Wrong port number
- Firewall blocking connections
“DNS resolution failed”
Causes:- Domain doesn’t exist
- DNS not configured
- DNS propagation not complete
“SSL handshake failed”
Causes:- Expired certificate
- Self-signed certificate
- Certificate hostname mismatch
Performance Issues
High latency
Symptoms:- Requests taking longer than expected
- Inconsistent response times
knoxcall_time: Time spent in KnoxCallbackend_time: Time backend took to respondtotal_time: Total request time
- If
backend_timeis high: Optimize backend - If
network_timeis high: Use closer region - If
knoxcall_timeis high: Contact support
Intermittent failures
Symptoms:- Some requests succeed, others fail
- No consistent pattern
- Backend load balancer issues
- Database connection pool exhausted
- Memory leaks in backend
- Network instability
Testing & Debugging Tools
Use API Logs
Best debugging tool:- Go to Logs → API Logs
- Find your request
- Expand to see:
- Full request headers/body
- Full response headers/body
- Error messages
- Latency breakdown
Test in Dashboard
Use built-in testing tool:- Go to Routes → Select route
- Click Test Route
- Configure request
- See detailed response
Use verbose curl
-v flag shows:
- DNS resolution
- Connection establishment
- SSL handshake
- Request headers sent
- Response headers received
Check Health Endpoint
Test backend directly:Getting Help
If you’re still stuck:1. Gather Information
Before contacting support:2. Check API Logs
Find the failing request:- Go to Logs → API Logs
- Copy Request ID
- Include in support ticket
3. Export Configuration
Export route configuration:- Go to Routes → Select route
- Click Export
- Attach to support ticket
4. Contact Support
- Email: [email protected]
- Chat: Click support icon in dashboard
- Phone: Available for Enterprise customers
Prevention Tips
1. Enable Health Checks
Monitor route health:- Edit route
- Enable Health Checks
- Set check interval: 60s
- Set alert threshold
2. Set Up Alerts
Get notified of issues:3. Use Staging Environment
Test changes before production:4. Monitor Regularly
Check dashboard weekly:- Success rates
- Latency trends
- Error patterns
- Usage statistics
5. Keep Backend Logs
Maintain backend logs for debugging:- HTTP request/response
- Processing time
- Error messages
- Stack traces
Next Steps
API Logs
View detailed request logs
Alerts
Set up error alerts
Testing Routes
Learn route testing
Support
Get help from support
📊 Statistics
- Level: beginner to advanced
- Time: Reference guide
🏷️ Tags
troubleshooting, debugging, errors, fixes, support