Toolkit Troubleshooting Guide
This guide helps you resolve common issues when setting up and using agent toolkits. If you encounter problems not covered here, please contact support at support@getodin.ai.Authentication Issues
OAuth Authentication Problems
Error: “invalid_grant”
Symptoms: OAuth authentication fails with invalid_grant error Possible Causes:- Incorrect Client ID or Client Secret
- Mismatched redirect URI
- Expired or revoked credentials
- Clock synchronization issues
-
Verify Credentials
- Double-check Client ID and Client Secret
- Ensure no extra spaces or characters
- Copy credentials directly from the service provider
-
Check Redirect URI
- Ensure redirect URI matches exactly (including protocol and port)
- Common format:
https://your-domain.com/user/integrations/{service}/oauth/callback
- Check for trailing slashes or missing paths
-
Regenerate Credentials
- Create new OAuth credentials in the service provider console
- Update credentials in Odin Super Admin panel
- Test authentication again
-
Check System Time
- Ensure server time is synchronized
- OAuth tokens are time-sensitive
Error: “insufficient_permission”
Symptoms: Authentication succeeds but operations fail with permission errors Possible Causes:- Missing required OAuth scopes
- User hasn’t granted necessary permissions
- Admin consent required but not provided
-
Check OAuth Scopes
- Verify all required scopes are included
- Compare with toolkit documentation requirements
- Add missing scopes to OAuth app configuration
-
Grant Admin Consent
- For enterprise applications, admin consent may be required
- Contact your organization’s administrator
- Ensure proper approval workflow is followed
-
Re-authenticate User
- Have user re-authenticate with updated scopes
- Clear existing tokens and start fresh
- Test with a different user account
Error: “access_denied”
Symptoms: User denies permission during OAuth flow Possible Causes:- User clicked “Deny” during OAuth flow
- App not approved for organization
- Suspicious activity detected
-
User Education
- Explain why permissions are needed
- Provide clear instructions for OAuth flow
- Show benefits of granting access
-
App Approval
- Ensure app is approved for your organization
- Contact service provider for app review
- Use verified app status when possible
API Key Issues
Error: “invalid_api_key”
Symptoms: API operations fail with invalid key error Possible Causes:- Incorrect API key
- Expired API key
- Key not activated
- Wrong environment (sandbox vs production)
-
Verify API Key
- Check key is copied correctly
- Ensure no extra spaces or characters
- Verify key is for correct service
-
Check Key Status
- Verify key is active and not expired
- Check if key has required permissions
- Ensure key is for correct environment
-
Regenerate Key
- Create new API key if needed
- Update key in Odin configuration
- Test with new key
Connection Issues
Database Connection Problems
Error: “connection_refused”
Symptoms: Cannot connect to database Possible Causes:- Incorrect connection parameters
- Database server not running
- Network connectivity issues
- Firewall blocking connection
-
Verify Connection Parameters
- Check host, port, database name
- Verify username and password
- Ensure correct connection string format
-
Test Network Connectivity
- Ping database server
- Check if port is accessible
- Verify firewall rules
-
Check Database Status
- Ensure database server is running
- Check database logs for errors
- Verify database is accepting connections
Error: “authentication_failed”
Symptoms: Database connection fails with auth error Possible Causes:- Incorrect username or password
- User doesn’t exist
- Insufficient permissions
- Account locked or disabled
-
Verify Credentials
- Check username and password
- Test credentials with database client
- Ensure no special characters causing issues
-
Check User Permissions
- Verify user has required permissions
- Check if user can connect from your IP
- Ensure user is not locked or disabled
API Connection Problems
Error: “timeout”
Symptoms: API requests timeout Possible Causes:- Network connectivity issues
- API server overloaded
- Request too large or complex
- Rate limiting
-
Check Network
- Test internet connectivity
- Check if API service is accessible
- Verify DNS resolution
-
Optimize Requests
- Reduce request size
- Simplify complex queries
- Use pagination for large datasets
-
Handle Rate Limits
- Implement exponential backoff
- Reduce request frequency
- Use batch operations when possible
Data Issues
File Access Problems
Error: “file_not_found”
Symptoms: Cannot access files Possible Causes:- Incorrect file path
- File doesn’t exist
- Insufficient permissions
- File moved or deleted
-
Verify File Path
- Check path is correct and complete
- Ensure proper path separators
- Test path with file browser
-
Check Permissions
- Verify user has read/write access
- Check file ownership
- Ensure proper sharing settings
-
File Existence
- Confirm file exists at specified location
- Check if file was moved or renamed
- Verify file is not corrupted
Data Format Issues
Error: “invalid_format”
Symptoms: Data processing fails due to format issues Possible Causes:- Unexpected data format
- Missing required fields
- Encoding issues
- Corrupted data
-
Validate Data Format
- Check data structure matches expectations
- Verify required fields are present
- Test with sample data
-
Handle Encoding
- Ensure proper character encoding
- Use UTF-8 when possible
- Handle special characters properly
-
Data Cleaning
- Remove or fix corrupted data
- Handle missing values
- Normalize data formats
Performance Issues
Slow Operations
Symptoms**: Toolkit operations are slow
Possible Causes:- Large data volumes
- Inefficient queries
- Network latency
- Resource constraints
-
Optimize Queries
- Use appropriate filters
- Limit result sets
- Use efficient data structures
-
Batch Operations
- Process data in batches
- Use bulk operations when possible
- Implement pagination
-
Caching
- Cache frequently accessed data
- Use appropriate cache expiration
- Implement smart cache invalidation
Memory Issues
Error: “out_of_memory”
Symptoms: Operations fail due to memory constraints Possible Causes:- Large datasets
- Memory leaks
- Inefficient algorithms
- Resource limits
-
Optimize Memory Usage
- Process data in chunks
- Use streaming when possible
- Clean up unused variables
-
Algorithm Optimization
- Use more efficient algorithms
- Reduce data duplication
- Implement lazy loading
Service-Specific Issues
Google Workspace Issues
Error: “quota_exceeded”
Symptoms: Google API quota exceeded Solutions:- Monitor API usage in Google Cloud Console
- Implement rate limiting
- Request quota increase if needed
- Use batch operations
Error: “domain_not_verified”
Symptoms: Cannot access Google Workspace data Solutions:- Verify domain ownership
- Complete domain verification process
- Check admin consent requirements
Microsoft 365 Issues
Error: “tenant_not_found”
Symptoms: Cannot connect to Microsoft 365 Solutions:- Verify tenant ID is correct
- Check if tenant exists and is accessible
- Ensure proper Azure AD configuration
Error: “app_not_found”
Symptoms: Azure app not found Solutions:- Verify app registration exists
- Check app ID and tenant ID
- Ensure app is properly configured
Salesforce Issues
Error: “invalid_session_id”
Symptoms: Salesforce session expired Solutions:- Implement token refresh logic
- Handle session expiration gracefully
- Use refresh tokens when available
Debugging Tips
Enable Debug Logging
-
Check Odin Logs
- Review application logs for errors
- Look for authentication failures
- Check API request/response logs
-
Service Provider Logs
- Check service provider dashboards
- Review API usage statistics
- Look for error patterns
Test Connectivity
-
Independent Testing
- Test OAuth flow outside Odin
- Verify API keys with service tools
- Check database connections with clients
-
Network Diagnostics
- Use ping and telnet for connectivity
- Check DNS resolution
- Verify firewall rules
Common Debug Commands
Getting Help
Self-Service Resources
-
Documentation
- Review toolkit-specific documentation
- Check service provider documentation
- Look for API reference guides
-
Community Forums
- Search for similar issues
- Post questions with detailed information
- Share solutions with community
Contact Support
When contacting support, please provide:-
Error Details
- Exact error messages
- Screenshots if applicable
- Log entries
-
Configuration Information
- Toolkit being used
- Setup steps taken
- Configuration details (without sensitive data)
-
Environment Details
- Odin version
- Browser and OS
- Network environment
-
Steps to Reproduce
- Detailed steps to reproduce the issue
- Expected vs actual behavior
- Frequency of occurrence
Support Channels
- Email: support@getodin.ai
- Documentation: This troubleshooting guide
- Community: User forums and discussions
When reporting issues, never share sensitive information like passwords, API
keys, or personal data. Use placeholder values or redact sensitive
information.