๐งSDK Troubleshooting
Authentication Errors
Invalid Token (401 Unauthorized)
Status code: 401
Response: {"error": "Unauthorized", "message": "Invalid token"}// Verify you're using the correct token
import DocsDispatcher, { BearerAuth } from 'docs-dispatcher-sdk'
import axios from 'axios'
const auth = new BearerAuth('your-valid-jwt-token') // Check token value
const http = new DocsDispatcher.Http.AxiosAdapter(axios)
const dd = new DocsDispatcher(auth, http)
// Test authentication
try {
await dd.healthCheck()
console.log('Authentication successful')
} catch (error) {
console.error('Auth failed:', error.message)
}Expired Token
Missing Authentication
Validation Errors
Missing Required Parameters (400 Bad Request)
Invalid Data Types
Template Not Found (404 Not Found)
Network and Connection Issues
Connection Timeout
SSL/TLS Certificate Errors
Rate Limiting (429 Too Many Requests)
Installation Problems
Package Manager Errors
Version Compatibility Issues
Common Mistakes
Wrong Service Enum
Missing Config for Provider
Incorrect Response Format
Debug Logging
Node.js
PHP
Java
Environment-Specific Issues
Development vs Production
CORS Issues (Browser/Frontend)
Getting Help
Before Asking for Help
When Reporting Issues
Support Channels
Next Steps
Last updated