Initialization Issues
Missing or invalid required properties
Symptoms: Component displays detailed error messages in console and fails to mount Error message example:- Invalid API key: Verify API key is correct and active
- Invalid URL format: Ensure URLs start with https:// (baseurl) and wss:// (wssurl)
- Missing properties: Confirm all required properties are provided
- Invalid JSON Schema: Validate that toolsargs contains valid JSON Schema Draft-07
- Check property names: Ensure exact spelling (baseurl, wssurl, apikey, userid, patientid, toolsargs)
Component doesn’t load
Symptoms: SofIA component doesn’t appear on the page Common causes:- Script not loaded correctly
- Missing or invalid API key
- Error in props configuration
- Verify that the script loads without errors in the console
- Confirm that
apiKeyis configured correctly - Validate that
baseUrlpoints to the correct endpoint - Ensure the container element exists in the DOM
Authentication error
Symptoms: 401 or 403 error messages in console Solutions:- Verify that your API key is valid and active
- Confirm you’re using the correct endpoint (sandbox vs production)
- Check that your IP is whitelisted if applicable
- Contact support if the problem persists
Audio and Transcription Issues
Microphone audio not detected
Symptoms: Transcription doesn’t start or doesn’t detect voice Solutions:- Browser permissions: Ensure the browser has microphone permissions
- HTTPS required: WebRTC requires HTTPS connection in production
- Audio device: Verify that the microphone is connected and working
- Browser configuration: Check privacy and audio settings
Poor transcription quality
Symptoms: Transcribed text with many errors Solutions:- Improve audio quality (closer microphone, less noise)
- Speak clearly and at moderate speed
- Configure the correct language in the SDK
- Use headphones to avoid echo and feedback
Frequent WebSocket disconnections
Symptoms: Connection loss during transcription Solutions:- Verify network connection stability
- Configure automatic reconnection in your implementation
- Implement local buffer for unsent data
- Check firewall and proxy that might block WebSockets
Configuration Issues
Invalid JSON schemas
Symptoms: Validation errors intoolsArgs
Solutions:
- Syntax validation: Use a JSON linter to verify syntax
- Schema header: Include
"$schema": "http://json-schema.org/draft-07/schema#" - Data types: Verify that types match JSON Schema Draft-07
- References: Ensure
$refpoint to valid definitions
Payload too large
Symptoms: 413 error or messages about size limit Solutions:- Reduce toolsArgs: Simplify schemas, use
$reffor reuse - Optimize patientData: Use
urls_historialinstead of complete data - Segmentation: Divide large queries into multiple sessions
- Compression: Remove unnecessary spaces and empty optional fields
Integration Issues
Callbacks not executing
Symptoms:handleReport or other callbacks don’t respond
Solutions:
- Correct syntax: Verify that callbacks are valid functions
- Context: Ensure that
thisis correctly bound - Previous errors: Check console for errors that prevent execution
- Schema configuration: Confirm that
requiredis configured appropriately
Framework-specific issues
React:Performance Issues
Slow responses
Symptoms: Excessive time betweenGenerate and handleReport
Solutions:
- Network: Check connection latency to servers
- Data: Reduce size of
patientDataandtoolsArgs - Specialty: Some specialties require more processing
- Cache: Implement caching for similar queries
Excessive memory consumption
Symptoms: Slow browser or freezes after prolonged use Solutions:- Clean sessions: Close unused sessions
- Event listeners: Remove listeners when destroying components
- References: Avoid circular references in callbacks
- Reload: Implement periodic reload for long sessions
Debugging and Logging
Enable detailed logging
Useful information for support
When contacting technical support, include:- SDK version used
- Browser and version
- Complete error messages from console
- Props configuration (without including API keys)
- Steps to reproduce the problem