Troubleshooting
Solutions to common issues and errors in Codeless Sync.
Troubleshooting
Find solutions to common issues you may encounter while using Codeless Sync.
Connection Issues
Database Connection Failed
Symptoms: Cannot connect to your PostgreSQL database
Solutions:
-
Verify your connection string
- Check that your connection string is correct and complete
- Ensure the password is included and correct
- Verify the host, port, and database name are accurate
- See the Database Setup Guide for help finding your credentials
-
Check database status
- Ensure your database is active (not paused)
- Verify you have network connectivity
- Check your provider's status page for outages
-
Test your connection
- Use CLS's "Test Connection" button in the project form
- Verify SSL is enabled on your database
Provider API Key Invalid
Symptoms: API key validation fails
Solutions:
-
Verify the key format
- Restricted keys (recommended):
rk_test_(test) orrk_live_(production) - Secret keys (fallback):
sk_test_(test) orsk_live_(production) - Ensure you copied the entire key
- Restricted keys (recommended):
-
Check provider dashboard
- Go to your provider's API keys section
- Verify the key exists and is active
- Check that it hasn't been revoked
-
Try generating a new key
- Create a fresh API key in your provider dashboard
- Update your Codeless Sync (CLS) configuration
- Delete the old key
Sync Issues
Sync Fails Immediately
Symptoms: Sync status shows "failed" right after starting
Common Causes:
-
Invalid API credentials
- Re-test your provider API key
- Verify database connection
-
Table not found
- Confirm table exists in your database
- Check table name matches exactly
- Verify table is in the public schema
-
Permission errors
- Ensure database user has write permissions
- Check table policies allow inserts/updates
Fix:
-- Verify table exists
SELECT * FROM information_schema.tables
WHERE table_name = 'your_table_name';
-- Check table structure
\\d your_table_name
Sync Stuck at 0%
Symptoms: Sync starts but progress never increases
Solutions:
-
Check sync history
- Look for error messages
- Review detailed logs
-
Verify data exists
- Ensure you have data in your provider account
- Check filters if using any
-
Wait longer
- First syncs may take time to start
- Allow 2-3 minutes before troubleshooting
-
Cancel and retry
- Cancel the stuck sync
- Wait 1 minute
- Trigger a new sync
Partial Data Synced
Symptoms: Some records missing from your database
Solutions:
-
Check sync completion
- Verify sync status is "completed"
- Review record count in sync history
-
Verify table schema
- Ensure all fields are nullable or have defaults
- Check for schema mismatches
-
Look for errors
- Review sync logs for skipped records
- Check your database logs for insert errors
-
Re-run the sync
- Trigger a fresh sync
- CLS will update existing records
Table Schema Issues
Table Schema Mismatch
Symptoms: Error about incompatible columns or data types
Solutions:
-
Use the provided SQL template
- Copy the exact schema from CLS wizard
- Don't modify column names or types
-
Verify column types
SELECT column_name, data_type FROM information_schema.columns WHERE table_name = 'your_table_name'; -
Recreate the table
DROP TABLE IF EXISTS your_table_name; -- Then paste the SQL template from CLS
Dropping a table deletes all data. Export your data first if needed.
Missing Columns
Symptoms: Sync fails with "column does not exist" error
Solution:
Add missing columns to your table:
ALTER TABLE your_table_name
ADD COLUMN column_name data_type;
Or recreate the table using the latest SQL template from CLS.
Performance Issues
Slow Syncs
Symptoms: Syncs take longer than expected
Normal behavior:
- First sync: 5-10 minutes for 10,000 records
- Subsequent syncs: 1-2 minutes
If slower:
-
Check database performance
- Monitor database CPU and memory
- Check for slow queries
- Consider upgrading your database plan
-
Reduce data volume
- Use more frequent syncs (Premium plans)
- Split into multiple configurations
-
Check network
- Verify internet connection
- Test during off-peak hours
Rate Limit Errors
Symptoms: Error about too many requests
Solutions:
-
Provider rate limits (e.g., Stripe)
- Reduce sync frequency
- Space out manual syncs
- Contact your provider for higher limits
-
CLS rate limits (IP-based: 60 req/min general, 20 req/min for syncs)
- Wait 1 minute before retrying
- Space out manual sync triggers
- Avoid triggering multiple syncs simultaneously
Schedule Issues
Schedule Not Running
Symptoms: Scheduled sync doesn't trigger
Checklist:
- ✅ You have a Premium plan
- ✅ Schedule is set to "active"
- ✅ Configuration is "active"
- ✅ Project is "active"
- ✅ Correct timezone settings
Solutions:
-
Verify all active statuses
- Check project status
- Check configuration status
- Check schedule status
-
Check quota
- Ensure you haven't hit daily sync limit
- Review usage statistics
-
Review sync history
- Look for skipped or failed runs
- Check error messages
Authentication Issues
Session Expired
Symptoms: Logged out unexpectedly
Solutions:
- Log in again - Sessions expire after 24 hours
- Check browser cookies - Ensure cookies are enabled
- Try incognito mode - Rule out browser extensions
Can't Sign In
Symptoms: Login fails or hangs
Solutions:
- Verify email - Check spam folder for verification
- Reset password - Use "Forgot password" link
- Try OAuth - Use Google or GitHub sign-in
- Clear browser cache - Hard refresh (Ctrl+Shift+R)
Data Issues
Duplicate Records
Symptoms: Same record appears multiple times in your database
Cause: Table missing primary key on id column
Fix:
-- Add primary key constraint
ALTER TABLE your_table_name
ADD PRIMARY KEY (id);
-- Delete duplicates (keeps newest)
DELETE FROM your_table_name a
USING your_table_name b
WHERE a.id = b.id
AND a.synced_at < b.synced_at;
Data Not Updating
Symptoms: Changes in your provider account don't appear in your database
Solutions:
- Run a fresh sync - Manual or scheduled
- Check last_sync timestamp - Ensure sync is recent
- Verify upsert logic - Check if
idmatches
Getting Help
If you still need assistance:
-
Check sync logs
- Go to configuration details
- Click "Sync History"
- Copy error messages
-
Check database logs
- Go to your database provider's dashboard
- Check database logs
- Look for error details
Additional Resources
- Getting Started - Setup guides
- Core Concepts - How CLS works
- Database Setup - Find your database credentials
- Stripe Setup - Stripe API Key configuration (restricted key recommended)
- API Reference - API documentation