Solutions for common issues and error messages
Authentication failures when making API calls
X-Api-Key: your_key# Test API key validity
curl -H "X-Api-Key: your_key" \
https://api.killswitchguardian.com/v1/status
Application cannot reach KillSwitch Guardian API
# Test connectivity
ping api.killswitchguardian.com
telnet api.killswitchguardian.com 443
# Test with curl
curl -I https://api.killswitchguardian.com/v1/status
Slow response times or request timeouts
// Async implementation example
public async Task
{
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(5));
return await killSwitch.CheckAsync(cts.Token);
}
| Error Code | HTTP Status | Description | Solution |
|---|---|---|---|
| AUTH_001 | 401 | Invalid API key | Verify API key in dashboard |
| CUST_002 | 404 | Customer not found | Check customer ID |
| RATE_003 | 429 | Rate limit exceeded | Reduce request frequency |
| SYS_004 | 500 | Internal server error | Wait and retry |
| CONF_005 | 400 | Invalid configuration | Check config file format |
// Enable debug logging
{
"Logging": {
"LogLevel": {
"KillSwitch.Client": "Debug"
}
}
}
# Health check
GET /v1/status
Returns service status
# Validate API key
GET /v1/validate
Validates API key without customer check