Support/Troubleshooting
Troubleshooting Guide
Solutions to common issues and how to debug FlowSearch problems.
Quick Diagnostics
Open your browser's Developer Tools (F12) and check the Console tab for errors.
// Quick diagnostic script - paste in console
console.log('FlowSearch loaded:', typeof FlowSearch !== 'undefined');
console.log('Input element:', document.querySelector('[data-flowsearch-input]'));
console.log('Results element:', document.querySelector('[data-flowsearch-results]'));Common Issues
"FlowSearch is not defined"
Script not loading or loading order issue
Causes:
- • Script tag missing or incorrect
- • Initialization code running before script loads
- • CDN blocked by ad blocker or firewall
Solutions:
- Verify script is in
<head>:<script src="https://cdn.flowsearch.io/widget.js"></script>
- Ensure initialization is in footer (after script loads)
- Check Network tab for blocked requests
"No elements found"
FlowSearch can't find your search elements
Causes:
- • Missing data attributes on elements
- • Script running before DOM is ready
- • Typo in attribute names
Solutions:
- Check elements have correct attributes:
<input data-flowsearch-input /> <div data-flowsearch-results></div>
- Add initialization in footer code, not head
- Inspect element in Webflow to verify attribute is set
Search not returning results
Input works but no results appear
Causes:
- • Invalid or expired API key
- • Website not crawled yet
- • Network/CORS issues
Solutions:
- Check your API key in the dashboard
- Verify crawl completed successfully
- Check Network tab for failed API requests
- Enable debug mode to see detailed logs:
new FlowSearch({ ..., debug: true })
Results not visible
Search works but results don't display
Causes:
- • CSS hiding the results container
- • Z-index issues (behind other elements)
- • Container has zero height
Solutions:
- Inspect the results container in DevTools
- Check for
display: noneorvisibility: hidden - Add higher z-index to results:
[data-flowsearch-results] { z-index: 9999; } - Ensure container has proper positioning for dropdown
Works in Designer, not on published site
Or vice versa
Important:
FlowSearch only works on published sites, not in the Webflow Designer preview. Custom code doesn't execute in the Designer.
Solutions:
- Always test on your published site or staging domain
- After making changes, publish and refresh with cache cleared
- Use Webflow's staging domain for testing
Debugging Tips
Enable Debug Mode
Get detailed console output:
const flowSearch = new FlowSearch({
apiUrl: 'https://api.flowsearch.io',
apiKey: 'YOUR_API_KEY',
debug: true // Enables verbose logging
});Check Network Requests
- Open DevTools → Network tab
- Type in the search input
- Look for requests to
api.flowsearch.io - Check status codes and response bodies
Test API Directly
// Test API in browser console
fetch('https://api.flowsearch.io/api/v1/search?q=test', {
headers: { 'X-FlowSearch-Key': 'YOUR_API_KEY' }
})
.then(r => r.json())
.then(console.log)
.catch(console.error);Getting Help
If you're still stuck after trying these solutions:
Include This Info
- • Your website URL
- • Browser and version
- • Console error messages
- • Steps to reproduce