Common Errors Reference
Quick solutions to the most common KnoxCall errors.403 Forbidden
Error Message
What It Means
Your IP address isn’t whitelisted for this route.Quick Fix
- Check your IP:
curl https://api.ipify.org - Go to Resources → Clients
- Update or create client with your IP
- Assign client to route
See Also
IP Authorization Issues Guide - Comprehensive troubleshooting404 Route Not Found
Error Message
What It Means
The route name in yourx-knoxcall-route header doesn’t exist.
Common Causes
1. Typo in Route Name
2. Route Disabled
Check:- Go to Routes
- Find your route
- Is Enabled toggle ON?
3. Route Deleted
Symptom: Route worked before, now 404. Solution: Someone deleted it. Recreate the route or check with your team.4. Wrong Environment
- Use correct environment name
- Or create route in the environment you’re calling
401 Unauthorized
Error Message
What It Means
Your KnoxCall API key (x-knoxcall-key) is invalid or missing.
Common Causes
1. Missing API Key
2. Wrong API Key
Check:- Did you copy the full 72-character key?
- Is it the correct key for this tenant?
- Has the key been deleted?
- Go to Settings → API Keys
- Verify key exists and is enabled
- Generate new key if needed
3. API Key Deleted
Symptom: Worked before, now 401. Solution: Someone deleted the key. Generate a new one.502 Bad Gateway
Error Message
What It Means
KnoxCall couldn’t connect to your backend API.Common Causes
1. Backend Server Down
Your backend API isn’t running or crashed. Test directly:2. Wrong Target URL
Route points to incorrect backend URL. Check:- Go to Routes → Your route
- Look at Target Base URL
- Is it correct?
3. Firewall Blocking
Your backend firewall is blocking KnoxCall’s requests. Solution:- Whitelist KnoxCall’s IP addresses in your backend firewall
- Or disable firewall for testing (not recommended for production)
4. SSL/TLS Issues
Backend has invalid SSL certificate. Symptoms:- Use valid SSL certificate on backend
- Don’t use self-signed certs in production
5. DNS Not Resolving
Backend domain doesn’t exist or isn’t resolving. Test:504 Gateway Timeout
Error Message
What It Means
Your backend API took too long to respond (>30 seconds default).Common Causes
1. Slow Backend Processing
Your API is taking forever to process the request. Examples:- Heavy database query
- Third-party API call timing out
- Large file processing
- Infinite loop in code
- Optimize your backend code
- Add database indexes
- Use async processing for long tasks
- Implement timeouts on third-party calls
2. Backend Deadlock
Your backend is stuck waiting for something. Check:- Database connections maxed out?
- Waiting for external service?
- Thread pool exhausted?
3. Network Latency
Slow network between KnoxCall and your backend. Test:See Also
504 Errors Deep Dive500 Internal Server Error
Error Message
What It Means
Either KnoxCall or your backend had an unexpected error.How to Debug
Check Which Side Failed
If error details show:Backend 500 Errors
Solution:- Check your backend logs
- Look for stack traces, exceptions
- Fix the bug in your backend code
- Common causes:
- Null pointer exceptions
- Missing environment variables
- Database connection errors
- Uncaught exceptions
KnoxCall 500 Errors
Solution:- Check Logs → API Logs for details
- Contact support if it’s a KnoxCall bug
- Check if it’s a secret resolution issue
429 Too Many Requests
Error Message
What It Means
You’ve hit a rate limit.Common Causes
1. Route Rate Limit
Your route has rate limiting enabled. Check:- Go to Routes → Your route
- Check Rate Limiting settings
- What’s the limit? (e.g., 100 requests/minute)
- Slow down your requests
- Increase rate limit (if you control it)
- Use exponential backoff and retry
2. API Key Rate Limit
Your API key has a global rate limit. Solution: Wait for the rate limit window to reset (checkretry_after in response).
3. Burst Traffic
You sent a burst of requests all at once. Solution:- Implement request queuing
- Add delays between requests
- Use connection pooling
Secret-Related Errors
Secret Not Found
Error:- Go to Resources → Secrets
- Check if
stripe_keyexists - If not, create it
- If yes, check spelling in route config
Template Syntax Error
Error:Secret Decryption Error
Error:- Delete the secret
- Recreate with same name
- Update value
- Test again
Environment Errors
Environment Not Found
Error:- Go to Resources → Environments
- Check if “staging” exists
- Create it if missing
- Or use existing environment name
No Override Configuration
Error:- Go to Routes → Your route
- Click Environment Overrides
- Add configuration for “staging” environment
Network/Connection Errors
ECONNREFUSED
Error:- Start your backend server
- Check port is correct
- Don’t use localhost/127.0.0.1 (not accessible from KnoxCall)
ENOTFOUND
Error:- Check domain spelling
- Verify domain is registered
- Check DNS records are configured
ETIMEDOUT
Error:- Check backend is accessible from internet
- Verify firewall allows incoming connections
- Check backend server isn’t crashed
Client/Authorization Errors (Summary)
| Error | Meaning | Fix |
|---|---|---|
IP address not authorized | IP not whitelisted | See IP Authorization Guide |
Client authorization required | Route needs client but none provided | Assign client to route |
No clients assigned to environment | Environment has no clients | Assign clients to environment |
Client disabled | Client exists but disabled | Enable client |
Error Response Format
All KnoxCall errors follow this format:request_id when contacting support!
Quick Debugging Steps
Follow these steps for any error:1. Check Error Code
| Code | Category | Priority |
|---|---|---|
| 401 | Authentication | Check API key |
| 403 | Authorization | Check IP/client |
| 404 | Not Found | Check route name |
| 429 | Rate Limit | Slow down requests |
| 500 | Server Error | Check backend logs |
| 502 | Bad Gateway | Check backend URL/status |
| 504 | Timeout | Check backend performance |
2. Check Logs
- Go to Logs → API Logs
- Find your failed request
- Click to expand details
- Look for:
- Request headers sent
- Response from backend
- Error stack trace
3. Test Backend Directly
4. Check Route Configuration
- Route enabled? ✓
- Target URL correct? ✓
- Methods allowed? ✓
- Clients assigned? ✓
- Secrets exist? ✓
Getting Help
If error persists:Debugging Routes
Step-by-step debugging guide
API Logs
Review detailed request logs
IP Issues
Fix IP authorization problems
504 Errors
Timeout troubleshooting
Support Chat
Live help from support team
- Error message (full JSON response)
- Request ID from logs
- What you tried
- Route name and configuration
Error Prevention Tips
For Development
- ✅ Use test API keys with “allow any IP”
- ✅ Test backend directly first
- ✅ Check logs after every change
- ✅ Start with simple route, add complexity gradually
For Production
- ✅ Use static IPs for servers
- ✅ Set up monitoring and alerts
- ✅ Test in staging environment first
- ✅ Have error handling in client code
- ✅ Implement retry logic with exponential backoff
General Best Practices
- ✅ Keep route names descriptive and unique
- ✅ Document what each secret is for
- ✅ Regularly audit and clean up unused clients
- ✅ Monitor API logs for patterns
- ✅ Set up health check endpoints
Pro Tip: 90% of errors are one of three things: IP authorization (403), route not found (404), or backend issues (502/504). Check these first!