Common Errors and Troubleshooting
This document provides solutions for common errors and issues you might encounter when using the InsightEmbed widget and API.
Widget Installation Issues
Widget Not Appearing
Problem: The widget is not visible on your website after installation.
Possible Causes and Solutions:
Incorrect API Key
- Verify that you're using a Widget API Key (not a Primary API Key)
- Check that the API key is valid and not revoked in the Management Portal
Domain Restrictions
- Ensure your website's domain is included in the allowed domains list for your Widget API Key
- For local development, add
localhostto the allowed domains
JavaScript Errors
- Check your browser's console for JavaScript errors
- Ensure the widget script is loading correctly
- Verify that there are no JavaScript conflicts with other libraries
Content Security Policy (CSP)
- If your site uses a Content Security Policy, ensure it allows:
- Script source:
cdn.insightembed.com - Connect source:
api.insightembed.com - Frame source:
cdn.insightembed.com
- Script source:
- If your site uses a Content Security Policy, ensure it allows:
Visibility Settings
- Check if the widget is configured to be hidden based on URL patterns or other visibility settings
- Try explicitly showing the widget using JavaScript:
InsightEmbed.show()
Widget Loads But Doesn't Function
Problem: The widget appears on your website but doesn't respond to interactions.
Possible Causes and Solutions:
Initialization Issues
- Ensure the widget is fully initialized before interaction
- Check for initialization errors in the browser console
- Try reinitializing the widget with basic settings
Quota Exceeded
- Verify that you haven't exceeded your monthly analysis quota
- Check your usage in the Management Portal
JavaScript Conflicts
- Test the widget on a minimal page to rule out conflicts with other scripts
- Ensure no other scripts are capturing the events the widget relies on
API Authentication Errors
401 Unauthorized
Problem: API requests return a 401 Unauthorized error.
Possible Causes and Solutions:
Invalid API Key
- Verify that the API key is correct and active
- Check for typos or extra spaces in the API key
Incorrect Authentication Format
- Ensure you're using the correct format:
Authorization: Bearer YOUR_API_KEY - Check that "Bearer" is included and spelled correctly
- Ensure you're using the correct format:
Using Wrong Key Type
- Confirm you're using a Primary API Key for server-side API calls
- Widget API Keys have limited permissions and can't access all endpoints
403 Forbidden
Problem: API requests return a 403 Forbidden error.
Possible Causes and Solutions:
Domain Not Allowed
- For Widget API Keys, check that the request origin is in the allowed domains list
- Verify the exact domain format (including subdomains)
Insufficient Permissions
- Verify that your subscription plan includes access to the requested feature
- Check if you're trying to access a Pro feature with a Free or Starter plan
Account Suspension
- Check if your account has been suspended due to payment issues or terms violations
- Contact support if you believe this is in error
Analysis Errors
Text Analysis Fails
Problem: Text analysis requests fail or return errors.
Possible Causes and Solutions:
Content Too Large
- Check if the text exceeds the maximum size limit for your plan
- Try breaking the content into smaller chunks
Invalid Content Format
- Ensure the text is properly encoded (UTF-8)
- Remove any invalid or special characters
API Quota Exceeded
- Verify that you haven't exceeded your monthly analysis quota
- Consider upgrading your plan or purchasing additional quota
Image Analysis Fails
Problem: Image analysis requests fail or return errors.
Possible Causes and Solutions:
Unsupported Image Format
- Ensure you're using a supported format (JPEG, PNG, GIF, BMP, WEBP, HEIC/HEIF)
- Convert the image to a supported format if necessary
Image Too Large
- Check if the image exceeds the maximum file size for your plan
- Resize or compress the image to reduce its size
Invalid Image Data
- Verify that the image file isn't corrupted
- Ensure the image URL is accessible if using URL-based analysis
Screenshot Capture Fails
Problem: Screenshot capture functionality doesn't work.
Possible Causes and Solutions:
Browser Permissions
- Ensure the user has granted screen capture permissions
- Some browsers require HTTPS for screen capture functionality
Browser Compatibility
- Verify that the user's browser supports the Screen Capture API
- Provide fallback options for unsupported browsers
Extension Conflicts
- Check if browser extensions are interfering with screen capture
- Test in incognito/private mode to rule out extension conflicts
Rate Limiting and Quota Issues
429 Too Many Requests
Problem: API requests return a 429 Too Many Requests error.
Possible Causes and Solutions:
Rate Limit Exceeded
- Reduce the frequency of API calls
- Implement exponential backoff for retries
- Check your plan's rate limits in the API documentation
Concurrent Request Limit
- Ensure you're not making too many simultaneous requests
- Implement request queuing if necessary
Quota Exceeded
Problem: You've reached your monthly analysis quota limit.
Possible Causes and Solutions:
High Usage
- Review your usage patterns in the Analytics dashboard
- Identify any unexpected spikes in usage
Upgrade Options
- Consider upgrading to a higher tier plan
- Purchase additional quota for the current month
Optimize Usage
- Implement caching for repeated analyses
- Use batch endpoints for multiple analyses
- Set appropriate visibility rules to prevent unnecessary widget usage
Widget Configuration Issues
Custom Theme Not Applied
Problem: Custom theme settings aren't reflected in the widget appearance.
Possible Causes and Solutions:
Initialization Order
- Ensure theme settings are provided during initial widget initialization
- If updating theme after initialization, use the
updateTheme()method
Invalid Color Formats
- Verify that color values are in valid formats (hex, rgb, rgba)
- Check for typos in color codes
CSS Conflicts
- Inspect the widget elements to check if other CSS rules are overriding your theme
- Use more specific selectors in your custom CSS
Widget Position Issues
Problem: The widget appears in the wrong position or is cut off.
Possible Causes and Solutions:
Conflicting Positioning
- Check if other fixed elements on your page are conflicting with the widget
- Adjust the widget's z-index or position settings
Responsive Layout Issues
- Test on different screen sizes and devices
- Configure responsive positioning settings for different breakpoints
Iframe or Container Constraints
- If your site uses iframes, ensure the widget is initialized in the correct context
- Check if the widget is constrained by an overflow: hidden container
Browser Compatibility Issues
Widget Doesn't Work in Specific Browsers
Problem: The widget functions in some browsers but not others.
Possible Causes and Solutions:
Unsupported Browser
- Check the Browser Compatibility guide for supported browsers
- Consider adding a fallback experience for unsupported browsers
Browser Extensions
- Test in incognito/private mode to rule out extension conflicts
- Identify specific extensions that might be blocking functionality
Feature Detection
- Implement feature detection rather than browser detection
- Provide graceful degradation for missing features
Network and Connectivity Issues
API Timeouts
Problem: API requests time out or take too long to complete.
Possible Causes and Solutions:
Server Load
- The API might be experiencing high load; implement retry logic with backoff
- Consider using batch endpoints to reduce the number of requests
Network Issues
- Check the user's internet connection
- Implement proper error handling for network failures
Large Payloads
- Reduce the size of request payloads
- Optimize image sizes before uploading
CORS Errors
Problem: Cross-Origin Resource Sharing (CORS) errors in the browser console.
Possible Causes and Solutions:
Domain Not Allowed
- Ensure your domain is properly configured in the API key settings
- Check for protocol mismatches (http vs https)
Proxy Requests
- For server-to-server communication, make requests from your backend to avoid CORS issues
- Set up a proxy endpoint on your server if necessary
Account and Billing Issues
Payment Failure
Problem: Subscription payment fails or card is declined.
Possible Causes and Solutions:
Card Issues
- Verify card details and expiration date
- Check if the card has sufficient funds or credit
- Contact your bank to authorize the transaction
Billing Information
- Ensure your billing information is up to date
- Verify that the billing address matches the card's registered address
Alternative Payment
- Try an alternative payment method
- Contact support for assistance with payment issues
Getting Additional Help
If you're still experiencing issues after trying the solutions above:
Check Documentation
- Review the relevant sections of the documentation for more detailed guidance
- Look for recent updates in the Changelog
Community Forums
- Search the community forums for similar issues and solutions
- Post your question with detailed information about the problem
Contact Support
- Submit a support ticket through the Management Portal
- Include detailed information about the issue, steps to reproduce, and any error messages
- For Pro plan subscribers, use the priority support channel
Live Chat
- Pro plan subscribers can access live chat support during business hours
- Navigate to the Support section in the Management Portal to access live chat
Reporting Bugs
If you believe you've found a bug in the InsightEmbed platform:
- Check if the issue is already known in the Changelog or community forums
- Gather detailed information about the bug, including:
- Steps to reproduce
- Expected behavior
- Actual behavior
- Browser and device information
- Screenshots or videos if applicable
- Submit a bug report through the Management Portal or email support@insightembed.com
We appreciate your help in improving InsightEmbed for all users!