Troubleshooting Guide
This guide helps you resolve common issues when working with the XD Soba API.
Common Issues
Authentication Errors
401 Unauthorized
- Check if your token is valid and not expired
- Verify the token format:
Bearer your_token_here - Ensure you're using the correct credentials
403 Forbidden
- Verify your account has the necessary permissions
- Check if your API key is active
- Contact support if you need access to specific endpoints
Rate Limiting
429 Too Many Requests
- Check the rate limit headers in the response
- Implement exponential backoff in your retry logic
- Consider implementing caching to reduce API calls
Validation Errors
400 Bad Request
- Verify all required fields are present
- Check data types and formats
- Ensure date formats are correct (ISO 8601)
- Validate string lengths and numeric ranges
Error Codes
| Code | Description | Solution |
|---|---|---|
| AUTH_001 | Invalid credentials | Check username and password |
| AUTH_002 | Token expired | Request a new token |
| AUTH_003 | Invalid token format | Ensure proper Bearer token format |
| VAL_001 | Required field missing | Check request payload |
| VAL_002 | Invalid data type | Verify field types |
| VAL_003 | Value out of range | Check numeric limits |
| RATE_001 | Rate limit exceeded | Implement backoff strategy |
| PERM_001 | Insufficient permissions | Contact support |
Debugging Tips
Request Logging
Enable request logging in your application:
// C# example
var client = new HttpClient();
client.DefaultRequestHeaders.Add("X-Debug", "true");
Response Headers
Check these headers for additional information:
X-Request-ID: For tracking requestsX-RateLimit-*: For rate limit informationX-Error-Code: For detailed error codes
Common Solutions
-
Token Issues
# Verify token format
curl -X GET "https://api.xdsoba.com/api/your-endpoint" \
-H "Authorization: Bearer your_token_here" \
-v -
Rate Limiting
# Check rate limit headers
curl -X GET "https://api.xdsoba.com/api/your-endpoint" \
-H "Authorization: Bearer your_token_here" \
-I -
Validation Errors
# Test with minimal payload
curl -X POST "https://api.xdsoba.com/api/your-endpoint" \
-H "Content-Type: application/json" \
-d '{"required_field": "value"}'
Getting Help
If you're still experiencing issues:
-
Check Documentation
- Review the Getting Started Guide
- Read the API Usage Guide
- Check the API Reference
-
Contact Support
- Email: support@xdsoba.com
- Include:
- Error code and message
- Request ID (if available)
- Steps to reproduce
- Relevant code snippets
-
Community Support
- Check our GitHub Issues
- Join our Discord Community