9. Troubleshooting
This section provides guidance on identifying and resolving common issues encountered while using the Ferdy Framework. It covers errors during setup, API interactions, integrations, and runtime issues.
9.1 Common Issues and Solutions
1. Authentication Errors
Problem: 401 Unauthorized or 403 Forbidden.
Cause:
Invalid API key or access token.
Expired access token.
Missing Authorization header.
Solution:
Verify that the API key or OAuth token is correct.
Check if the token has expired and refresh it using the /auth/token endpoint.
Ensure that the Authorization header includes the correct token format:
Authorization: Bearer YOUR_API_KEY
2. API Errors
Problem: 400 Bad Request.
Cause:
Incorrect request parameters.
Malformed JSON body.
Solution:
Validate the request body against the API documentation.
Use tools like Postman to test the API with correct parameters.
Check the API response for a detailed error message in the error object:
{
"error": {
"code": 400,
"message": "Invalid input format."
}
}
3. Slow API Responses
Problem: API requests take longer than expected.
Cause:
Network latency.
Overloaded servers during peak usage.
Solution:
Test the API endpoint's latency using a tool like curl or Postman.
Enable caching for static data or frequently accessed results.
Contact Ferdy support if latency persists across all endpoints.
4. Voice Recognition Fails
Problem: The system does not recognize or process voice inputs.
Cause:
Microphone permissions are disabled.
Poor audio quality or background noise.
Solution:
Check and enable microphone permissions in the browser or app settings.
Ensure the audio input is clear and free of background noise.
Test the ASR (Automatic Speech Recognition) service independently.
5. Task Execution Issues
Problem: Task creation or execution fails (500 Internal Server Error).
Cause:
Workflow misconfiguration.
Third-party API integration failure.
Solution:
Validate workflow configuration by testing individual steps.
Check third-party service availability (e.g., Google Calendar API status).
Review the server logs for detailed error information.
6. Missing or Incorrect Responses
Problem: Ferdy returns incomplete or irrelevant responses.
Cause:
Knowledge base misalignment.
Incorrect user context provided.
Solution:
Update the knowledge base with relevant, accurate data.
Pass detailed context (e.g., location, preferences) in the API request.
Enable debug mode to inspect response generation:
{
"debug_info": {
"intent": "weather_query",
"confidence": 0.92
}
}
9.2 Debugging Tools
Enable Ferdy Debug Mode
Add debug: true to your SDK or API configuration to log detailed information about errors, responses, and workflows.
Use Developer Tools
Postman: Test and debug API endpoints interactively.
cURL: Validate HTTP requests and check response times:
curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -d '{"input": "Hello"}' https://api.ferdy.ai/converse
Monitor Logs
Check Ferdy API logs via the Developer Portal for detailed traces of failed requests.
Access local server logs (for on-prem deployments).
9.3 Diagnostic Checklist
Network Connectivity
Ensure stable internet connectivity for API requests.
Test DNS resolution for api.ferdy.ai.
API Configuration
Verify the API base URL and endpoints are correct.
Check for any version mismatch in the API URL (e.g., /v1 vs. /v2).
Third-Party Integrations
Test external APIs independently to ensure availability.
Verify OAuth credentials for connected services.
SDK/Plugin Updates
Ensure you’re using the latest SDK or plugin version to avoid compatibility issues.
9.4 Reporting Issues
If the above solutions do not resolve the issue, report it to the Ferdy support team with the following details:
Issue Summary: A brief description of the problem.
Steps to Reproduce: A step-by-step guide to replicate the issue.
Request Details:
Endpoint, request body, and headers (excluding sensitive information).
Timestamp of the issue.
Error Logs:
API response and any server-side logs.
9.5 Contacting Support
Email: support@feeda.com
Live Chat: Available in the Ferdy Developer Portal.
Support Hours: 24/7 for enterprise users, 9 AM - 6 PM (local time) for free-tier users.
Community Forum: Access the Ferdy developer community to discuss issues and solutions.
Last updated