Troubleshooting
Common issues and solutions
Common issues and how to fix them.
Flowise Integration Issues
"DriftOS node not appearing in Flowise"
Solution: Restart Flowise server.
# Stop Flowise
# Restart Flowise
npm startThe DriftOS node should appear in the Memory category after restart.
"Connection refused" or "401 Unauthorized"
Symptoms:
- API calls fail with 401 or connection errors
- Logs show "Unauthorized" or "Connection refused"
Solutions:
-
Check API key
- Verify key is correct in Flowise credentials
- Get a fresh key from driftos.dev
-
Check endpoint
- If Use Hosted API is ON, no custom endpoint needed
- If Use Hosted API is OFF, verify custom endpoint is reachable
-
Check network
- Ensure Flowise can reach
api.driftos.dev - Check firewall settings
- Ensure Flowise can reach
"Falling back to database messages"
What it means:
DriftOS encountered an error and Flowise fell back to standard memory.
Logs:
❌ DriftOS routing error: [error message]
Falling back to standard memoryWhy this happens:
- DriftOS API is down
- Network connectivity issue
- Invalid API key
- Rate limit exceeded
What to do:
- Check the error message in logs for details
- Verify API key is valid
- Check API status at status.driftos.dev
- Wait and retry if it's a temporary outage
Good news: Your chatflow continues working normally. No user-facing errors.
"Could not determine a valid conversation ID"
Symptoms:
- DriftOS can't find a conversation ID
- Routing fails immediately
Solutions:
-
If Use Flowise Chat ID is ON:
- This should work automatically
- Ensure you're using a supported Flowise version
- Try turning it OFF and providing a custom Chat ID
-
If Use Flowise Chat ID is OFF:
- You must provide a custom Chat ID in the node config
- Example:
my-custom-session-id
Routing decisions seem wrong
Symptoms:
- DriftOS creates unexpected branches
- Messages go to wrong topics
Debug steps:
-
Check the logs - DriftOS explains its reasoning:
🎯 Routing Decision: Reason: New semantic context detected: pet adoption inquiry -
Adjust configuration:
- Increase Max Context Messages if branches are too fragmented
- Add a System Prompt to guide routing behavior
-
Try different routing engine:
- Switch between
driftos-coreanddriftos-embed - Core is more accurate, Embed is more deterministic
- Switch between
-
Check for edge cases:
- Sarcasm (Core handles better than Embed)
- Negation ("I don't want X" - Core handles better)
- Synonyms (Core handles better)
Learn more about routing engines →
SDK Issues
"Invalid API key"
Error:
{
"success": false,
"error": {
"message": "Invalid API key",
"code": "UNAUTHORIZED",
"statusCode": 401
}
}Solution:
- Check your API key in code
- Verify it starts with
dft_live_ - Ensure the key hasn't been revoked
- Try using the
x-api-keyheader instead ofAuthorization: Bearer - Get a fresh key from driftos.dev
"Request timeout"
Error:
Error: Request timeout after 30000msSolutions:
-
Increase timeout:
const drift = createDriftClient(baseUrl, apiKey, { timeout: 60000 // 60 seconds }); -
Check network connection
-
Verify API status at status.driftos.dev
"Module not found: @driftos/client"
Error:
Error: Cannot find module '@driftos/client'Solution:
npm install @driftos/clientEnsure package is in your package.json.
API Issues
Rate Limits
Error:
{
"error": "Rate limit exceeded. Retry after 60 seconds."
}Solutions:
- Wait 60 seconds and retry
- Implement backoff in your code
- Contact support for higher limits
500 Internal Server Error
Error:
{
"error": "Internal server error"
}Solutions:
- Retry the request - might be temporary
- Check API status at status.driftos.dev
- Report persistent errors on Discord
Common Questions
"Too many branches being created"
Issue: DriftOS creates more branches than expected.
Why:
- Embed: Cannot ROUTE to old topics—creates new branches instead
- Core: Might be detecting subtle topic shifts you didn't expect
Solutions:
- Switch to Core for smarter topic detection (if using Embed)
- Review routing logs to understand why branches are created
- Adjust system prompt to guide routing behavior
- Accept more branches - they're pruned from context anyway
"Routing is too slow"
Issue: Routing latency is high.
Solutions:
- Switch to Embed for sub-50ms routing (if using Core)
- Check network latency to
api.driftos.dev - Self-host DriftOS for lower latency
Learn about choosing a routing engine →
"Context is too short"
Issue: Not enough messages in context.
Solutions:
-
Increase Max Context Messages in Flowise node or SDK:
const { messages } = await drift.buildPrompt(branchId, { maxMessages: 20 // Increase from default 10 }); -
Check branch message count in logs:
🌳 Branch: dog-adoption (3 messages)If the branch only has 3 messages, that's all you'll get.
Still Stuck?
Get help:
- GitHub: driftos/driftos-client/issues
- Discord: driftos.dev/discord
- Docs: driftos.dev/docs
