Common Issues
This guide helps you troubleshoot common issues when working with Databite connectors, flows, and integrations. Each issue includes symptoms, causes, and solutions.Authentication Issues
Issue: Invalid API Key
Symptoms:- Authentication fails with 401 Unauthorized
- “Invalid API key” error messages
- Connector cannot connect to service
- Incorrect API key format
- Expired or revoked API key
- Missing or incorrect API key configuration
Issue: OAuth Token Expiration
Symptoms:- Authentication works initially but fails after some time
- “Token expired” error messages
- Intermittent authentication failures
- OAuth tokens have expiration times
- No token refresh mechanism implemented
- Stored tokens are outdated
Data Synchronization Issues
Issue: Sync Fails with Large Datasets
Symptoms:- Sync process times out
- Memory usage spikes during sync
- Incomplete data synchronization
- Loading entire dataset into memory
- No pagination or batching
- Insufficient timeout settings
Issue: Duplicate Data in Sync
Symptoms:- Same records appear multiple times
- Data inconsistency between source and destination
- Sync process creates duplicates
- No unique key constraints
- Incorrect upsert logic
- Race conditions in concurrent syncs
Flow Execution Issues
Issue: Flow Stuck in Loading State
Symptoms:- Flow shows loading spinner indefinitely
- No error messages displayed
- User cannot proceed with flow
- API calls timing out
- Missing error handling
- Infinite loops in flow logic
Issue: Flow State Not Persisting
Symptoms:- Form data lost on page refresh
- Flow resets to beginning
- User progress not saved
- No state persistence mechanism
- State stored only in memory
- Browser refresh clears state
Performance Issues
Issue: Slow Connector Performance
Symptoms:- Actions take long time to execute
- High memory usage
- Timeout errors
- Inefficient API calls
- No caching mechanism
- Synchronous operations blocking execution
Issue: Memory Leaks
Symptoms:- Memory usage increases over time
- Application becomes slow
- Browser crashes
- Event listeners not removed
- Timers not cleared
- Large objects not garbage collected
Configuration Issues
Issue: Missing Environment Variables
Symptoms:- “Environment variable not found” errors
- Connector fails to initialize
- Configuration validation fails
- Environment variables not set
- Incorrect variable names
- Missing .env file
Issue: Incorrect Configuration Schema
Symptoms:- Configuration validation fails
- Connector cannot be created
- “Invalid configuration” errors
- Wrong data types in configuration
- Missing required fields
- Invalid configuration values
Testing Issues
Issue: Flaky Tests
Symptoms:- Tests pass and fail randomly
- Inconsistent test results
- Tests depend on external services
- Timing issues in tests
- External API dependencies
- Shared state between tests
Debugging Tips
Enable Debug Logging
Use Error Boundaries
Getting Help
Check Documentation
- Package READMEs: Check individual package documentation
- API Reference: Review API documentation for correct usage
- Examples: Look at example implementations
Debug Steps
- Enable Debug Logging: Turn on debug mode to see detailed logs
- Check Network Tab: Inspect API calls in browser dev tools
- Validate Configuration: Ensure all required fields are provided
- Test in Isolation: Create minimal test cases to isolate issues
Community Support
- GitHub Issues: Report bugs and ask questions
- Discord: Join the community for real-time help
- Stack Overflow: Search for existing solutions
Next Steps
Now that you understand common issues, you can:- Implement Monitoring: Set up monitoring to catch issues early
- Add Logging: Implement comprehensive logging for debugging
- Create Tests: Write tests to prevent regressions
- Document Solutions: Keep track of solutions for future reference