Documentation Index
Fetch the complete documentation index at: https://docs.fanfare.io/llms.txt
Use this file to discover all available pages before exploring further.
Common Issues
This guide covers the most frequently encountered issues and their solutions.SDK Initialization Issues
SDK Not Initializing
Symptoms: SDK methods throw “not initialized” errors. Common Causes:-
Missing publishable key
-
Invalid key format
- Publishable keys start with
pk_test_orpk_live_ - Secret keys start with
sk_test_orsk_live_ - Don’t mix test and live keys
- Publishable keys start with
-
Client created multiple times
”Already Initialized” Error
Symptom: Error when calling SDK methods. Solution: Ensure you only create one client instance per application.Authentication Issues
”Unauthorized” Errors (401)
Common Causes:-
Missing authentication header
-
Expired session
-
Wrong API key type
- Use publishable keys for client-side SDK
- Use secret keys only for server-to-server calls
Session Not Persisting
Symptom: User loses session on page refresh. Solutions:-
Check browser storage
- Ensure cookies/localStorage aren’t blocked
- Check for private browsing mode
-
Verify session initialization
Experience Entry Issues
”Experience Not Found” Error
Causes:- Invalid experience ID
- Experience not published
- Experience not yet active
- Verify the experience ID in your dashboard
- Check that the experience is published
- Confirm the experience’s start time has passed
”Already in Experience” Error
Symptom: Error when trying to enter an experience. Explanation: This is actually expected behavior. The SDK returns the existing session.Queue Not Moving
Symptoms: Position stays the same for extended periods. Possible reasons:- Low throughput: Queue is processing slowly
- Users ahead: Many users in front are still active
- Checkout delays: Users are taking time to complete purchases
- Dashboard shows queue activity
- Access grant rate is configured correctly
- No errors in webhook processing
Real-Time Update Issues
Position Not Updating
Symptoms: Queue position doesn’t change despite being connected. Solutions:-
Check event subscription
-
Verify connection status
-
Network issues
- Check browser console for WebSocket errors
- Verify no firewall/proxy blocking
- Try refreshing the page
Events Not Firing
Debug steps:-
Enable debug mode
-
Check event registration timing
-
Verify handler function
Checkout/Handoff Issues
Handoff Token Invalid
Symptoms: Checkout fails with “invalid token” error. Causes:- Token expired: Handoff tokens have a limited validity period
- Token already used: Each token can only be used once
- Wrong environment: Token from test mode used in production
User Kicked from Checkout
Symptom: User removed from checkout before completing purchase. Causes:- Access window expired
- Session timed out
- Another session took priority
- Show countdown timer in checkout
- Warn users when time is running low
- Implement session keep-alive
Mobile-Specific Issues
SDK Not Working on Mobile Safari
Common issues:-
Private browsing mode
- Storage APIs may be restricted
- Inform users if detected
-
ITP (Intelligent Tracking Prevention)
- May affect cross-site storage
- Use first-party cookies when possible
-
WebSocket restrictions
Touch Events Not Registering
Solution: Ensure proper touch event handling.Performance Issues
Slow Initial Load
Solutions:-
Lazy load the SDK
-
Preconnect to API
Memory Leaks
Symptoms: Page becomes slow over time. Solution: Clean up event handlers properly.Getting More Help
If you can’t resolve your issue:- Enable debug logging and capture the output
- Note the error code from any error messages
- Check the SDK Errors reference
- Check the API Errors reference
- Contact support with your findings
Contact Support
Get help from our support team