This page covers symptom-based troubleshooting — start here when something isn’t working as expected. For the complete catalog of SDK error messages with exact console output, see the Error Reference.
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 template contains valid JSON Schema Draft-07
- Check property names: Ensure exact spelling (baseurl, wssurl, apikey, userid, patientid, template)
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
- The SDK handles reconnection automatically. If disconnections persist, check your network stability and firewall/proxy settings.
- Verify that no corporate proxy or firewall is terminating idle WebSocket connections
Report Generation Issues
Report not generating
Symptoms: Clicking the generate button produces no result, orhandleReport is never called
Solutions:
- Verify template and templateid: Both
templateandtemplateidmust be set. If either is missing, the generate button won’t appear at all - Check template validity: Open the browser console with
debug="true"and look for[Sofia SDK] Settings Errormessages. Common issues include missing$schema, invalid JSON syntax, or a template exceeding 100 KB - Ensure sufficient conversation: The AI needs enough conversation context to extract data. If the conversation doesn’t cover the fields defined in your template, the report may be incomplete or generation may fail
- Check network connectivity: Report generation requires an API call. Verify your
baseurlis reachable and check for[Sofia SDK] API Errormessages in the console - Verify callback is set: Ensure
handleReportis assigned before the user clicks generate — see the framework-specific examples below
Report is incomplete or empty
Symptoms:handleReport fires but the report object is missing expected fields
Solutions:
- Review your template schema: Fields listed in
"required"will always be present but may contain generic or empty values if the conversation didn’t cover them - Add field descriptions: Use the
descriptionproperty in your JSON Schema to guide SofIA on what data to extract for each field - Check patientdata: Providing relevant patient context via
patientdataimproves extraction accuracy — see Patient Data - Enable debug mode: Set
debug="true"and check for[Sofia SDK] API -messages that show the report generation lifecycle
Configuration Issues
Invalid JSON schemas
Symptoms: Validation errors intemplate
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 template: Simplify schemas, use
$reffor reuse - Optimize patientData: Include only data relevant to the current consultation, and use
urlfields in medical notes to reference external records instead of embedding full content - 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
patientDataandtemplate - 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
Adddebug="true" to the SofIA component to activate verbose console output. All SDK messages are prefixed with [Sofia SDK].
What debug mode logs
Debug mode emits messages organized by category:| Log category | Prefix | What it covers |
|---|---|---|
| Configuration | [Sofia SDK] Settings - ... | Template parsing, validation, fallback behavior |
| Authentication | [Sofia SDK] Auth - ... | API key validation, token refresh |
| API calls | [Sofia SDK] API - ... | Report generation lifecycle (started, completed, failed) |
| WebSocket | [Sofia SDK] WS - ... | Connection status, reconnection attempts |
configError, authError, apiError, settingsError, audioError, storageError, or webSocketError.
Filtering console output
In your browser DevTools, use the Console filter to isolate SDK logs:- Open DevTools (F12 or Cmd+Option+I)
- Go to the Console tab
- In the filter input, type
[Sofia SDK] - Only SDK messages will be displayed, removing noise from your application and third-party libraries
Reading template logs
For template-specific debugging — including the full console log reference, validation checklist, and common issue resolution — see Clinical data schemas — Debugging your template.Useful information for support
When contacting technical support, include:- SDK version used
- Browser and version
- Complete error messages from console (filter by
[Sofia SDK]) - Props configuration (without including API keys)
- Steps to reproduce the problem