Troubleshooting
Common issues and solutions.
Troubleshooting
Common issues and solutions.
Authentication issues
"UNAUTHORIZED" error
Cause: Missing or invalid token
Solutions:
- Check Authorization header format:
Bearer <token> - Verify token hasn't expired
- Refresh token and retry
"TOKEN_EXPIRED" error
Cause: Access token has expired
Solution:
await client.refreshToken();
// Retry request
"TENANT_MISMATCH" error
Cause: Token tenant doesn't match the request tenant context
Solution: Ensure token was issued for the correct tenant
Rate limiting
"TOO_MANY_REQUESTS" error
Cause: Rate limit exceeded
Solutions:
- Check
Retry-Afterheader - Implement exponential backoff
- Request limit increase if needed
if (error.statusCode === 429) {
await sleep(error.details.retryAfter * 1000);
// Retry
}
Key/secret not found
"NOT_FOUND" error
Causes:
- Resource doesn't exist
- Wrong tenant context
- Insufficient permissions (shows as not found)
Solutions:
- Verify resource ID/path
- Check tenant context (header or query)
- Verify permissions
Connection issues
Timeout errors
Solutions:
- Check network connectivity
- Verify firewall rules
- Increase timeout setting
- Check service status
Getting help
Include in support requests:
- Request ID from error response
- Timestamp
- Endpoint called
- Error message