Common Issues
Authentication Token Issues
Failed to generate token
Failed to generate token
- Invalid API key
- API key not provided in Authorization header
- Invalid request parameters
- Network connectivity issues
- Verify API key:
- Check environment variables:
- Validate request parameters:
- Check API response:
Token expired or invalid
Token expired or invalid
- Token was generated too long ago
- Token was already used
- Token format is incorrect
- Generate token immediately before use:
- Donโt reuse tokens:
- Verify token format:
API key exposed in frontend
API key exposed in frontend
- Move API calls to backend:
- Create backend endpoint:
postMessage Issues
Messages not being received
Messages not being received
- Verify origin:
- Check iframe is loaded:
- Verify message format:
- Check for JavaScript errors:
Origin mismatch errors
Origin mismatch errors
- Log actual origins:
- Check for trailing slashes:
- Handle multiple environments:
PING not received
PING not received
- Check iframe URL:
- Wait for iframe to load:
- Check for errors in iframe:
Query Parameter Issues
Parameters not appearing in URL
Parameters not appearing in URL
- Debug URL construction:
- Check for undefined values:
URL too long
URL too long
- Check URL length:
- Reduce parameter size:
- Switch to postMessage:
Special characters breaking URL
Special characters breaking URL
- Use URLSearchParams:
- Verify encoding:
2FA Issues
OTP screen not showing
OTP screen not showing
- Verify 2FA flag:
- Check all required fields:
- Verify organization has 2FA enabled:
OTP not received
OTP not received
- Verify phone number:
- Check OTP channel:
- Wait and retry:
OTP verification failing
OTP verification failing
- Check OTP expiration:
- Verify user details match:
Browser Compatibility
postMessage not working in older browsers
postMessage not working in older browsers
URLSearchParams not available
URLSearchParams not available
Iframe not loading on iOS Safari
Iframe not loading on iOS Safari
- Check iframe attributes:
- Ensure HTTPS:
Mobile WebView Issues
Content not visible when keyboard opens
Content not visible when keyboard opens
User can zoom and breaks layout
User can zoom and breaks layout
Links don't open from iframe
Links don't open from iframe
WebView not loading on mobile
WebView not loading on mobile
- Enable JavaScript:
- Check HTTPS:
- Ensure youโre loading
https://embed.v2.doshi.app - iOS requires HTTPS by default (App Transport Security)
- Check App Permissions:
Network Issues
Slow authentication
Slow authentication
- Add timeout:
- Show loading state:
- Preconnect to domain:
Intermittent failures
Intermittent failures
- Implement retry logic:
- Check network status:
IP Whitelisting Issues
403 Forbidden Error
403 Forbidden Error
- Find your server IP:
- Email hello@doshi.app with:
- Your organization name
- Your server IP address
- Whether itโs for production or staging
- Wait for confirmation that your IP is whitelisted
Works in one environment, not another
Works in one environment, not another
Debugging Tools
Enable Debug Logging
Message Inspector
Network Monitor
Check iframe Status
Testing Checklist
Getting Help
If youโre still experiencing issues after trying these solutions:Contact Support
- Detailed description of the issue
- Browser and OS information
- Any error messages
- Steps to reproduce
