Overview
This guide covers common issues you may encounter when integrating the AI Chat Extension SDK and how to resolve them.Installation issues
Package not found
Symptom:npm install or pnpm add fails with “package not found”
Cause: npm registry not configured or authentication token missing
Solution:
Contact [email protected] if you need an authentication token.
Build errors after installation
Symptom: TypeScript or build errors after installing the SDK Cause: Missing dependencies or TypeScript version mismatch Solution:Manifest configuration issues
SDK not initializing
Symptom: SDK initialization fails with manifest validation error Cause: Missing required manifest permissions Solution: Verify yourmanifest.json includes:
manifest.json
Content script not injecting
Symptom: Chat controller doesn’t load, no badge or panel appears Cause: Content script file not copied to extension directory Solution:UI issues
Chat badge not appearing
Symptom: No chat badge shows up after searching Causes:- Query not classified as “shopping”
- Badge feature not enabled
- Branding configuration missing
- Page is in denylist
1. Test with explicit shopping query
1. Test with explicit shopping query
Try clear shopping queries:
- “best headphones”
- “Nike running shoes”
- “iPhone 15 deals”
2. Verify feature is enabled
2. Verify feature is enabled
3. Check badge configuration
3. Check badge configuration
4. Verify platform is enabled
4. Verify platform is enabled
Check that the platform is enabled in your configuration:
Chat panel not opening
Symptom: Clicking badge doesn’t open chat panel Causes:- Panel feature not enabled
- Chat config missing or invalid
- Content script not loaded
1. Verify feature is enabled
1. Verify feature is enabled
2. Check content script is loaded
2. Check content script is loaded
3. Check browser console for errors
3. Check browser console for errors
Open DevTools Console and look for:
- JavaScript errors
- Network errors
- CSP (Content Security Policy) errors
Panel appears blank
Symptom: Chat panel opens but shows blank white screen Causes:- API key invalid
- Network connectivity issues
- JavaScript errors in content script
Data provider issues
Providers not being called
Symptom: Data providers never execute, no logs Causes:- UI features disabled
- No shopping queries detected
- Panel not opened
1. Verify UI features enabled
1. Verify UI features enabled
Data providers only execute when UI features are active:
2. Test with shopping query
2. Test with shopping query
Search for “best laptops” on Google and open the chat panel
3. Add debug logging
3. Add debug logging
Provider errors breaking SDK
Symptom: SDK stops working after provider throws error Cause: Exceptions thrown from data providers Solution: Always wrap providers in try-catch and return null/:Slow performance
Symptom: Chat feels sluggish, UI freezes Cause: Data providers taking too long to respond Solutions:1. Add timeouts
1. Add timeouts
2. Implement caching
2. Implement caching
3. Measure performance
3. Measure performance
Event issues
Events not firing
Symptom: Event listeners never called Cause: Listener registered after events occurred Solution: Register listeners immediately after SDK initialization:You can also pass listeners during initialization as the third parameter.
Missing event data
Symptom: Event fires butevent.data is undefined
Cause: Some events have no data payload (e.g., CHAT_PANEL_CLOSED)
Solution:
Check event type before accessing data:
Query classification issues
All queries classified as “unknown”
Symptom: Shopping queries not detected, badge never shows Causes:- Invalid API key
- Network/firewall blocking API calls
- Backend service unavailable
Queries not being detected
Symptom: No classification happening, no events Causes:- Not on supported platform (Google Search, ChatGPT)
- SDK not active on current page
- Platform not enabled in configuration
1. Test on supported platforms
1. Test on supported platforms
Currently supported:
- Google Search (google.com)
- ChatGPT (chatgpt.com)
2. Check SDK is active
2. Check SDK is active
3. Verify platform is enabled
3. Verify platform is enabled
Check your platformControls configuration:
Browser-specific issues
Firefox: Content script not loading
Symptom: Works in Chrome but not Firefox Cause: Different manifest format or permissions Solution: Ensure Firefox-compatible manifest:manifest.json
Safari: Styling issues
Symptom: Chat panel styling broken in Safari Cause: Webkit-specific CSS differences Solution: Use broadly compatible CSS:Debugging tips
Enable debug mode
Always start with debug mode when troubleshooting:Check SDK version
Verify you’re using the latest SDK version:Inspect SDK state
In browser console:Check browser console
Always check the DevTools Console for:- JavaScript errors
- Network request failures
- SDK debug logs
- Warning messages
Test in incognito mode
Test in incognito/private browsing to rule out:- Conflicts with other extensions
- Cached data issues
- Profile-specific problems
Inspect network requests
In DevTools Network tab, filter for:- Requests to
chat.pie.org(chat backend) - Failed requests (red)
- 401/403 responses (authentication issues)
Common error messages
”Manifest validation failed”
Error:Failed to initialize SDK: Manifest validation failed
Solution: Fix manifest.json configuration (see Manifest configuration issues)
“Invalid API key”
Error:Failed to classify query: 401 Unauthorized
Solution: Verify API key is correct and active
Getting help
If you’re still experiencing issues:Email support
Contact our support team for assistance
Check documentation
Review the full SDK documentation
- SDK version
- Browser and version
- Manifest.json content
- Console errors/logs
- Steps to reproduce the issue

