Security & Troubleshooting
Security Considerations
-
Network Binding: The server runs on all interfaces (
0.0.0.0) by default. In production environments, consider binding to specific interfaces using the--hostflag. -
Authentication: There is no built-in authentication mechanism. For production deployments, consider adding a reverse proxy with authentication if needed.
-
Data Storage: Test executions are stored in memory only. Consider implementing persistent storage solutions for production use cases.
-
CORS: Cross-Origin Resource Sharing (CORS) is enabled by default. You can disable it using
--cors=falseif not needed.
Troubleshooting
Server Won't Start
Problem: Server fails to start or reports port binding errors.
Solutions:
-
Check if the port is already in use:
lsof -i :8080 -
Try a different port:
voiceflow server --port 9090 -
Check if you have permission to bind to the port (especially for ports < 1024):
sudo voiceflow server --port 80
API Returns 404
Problem: API endpoints return 404 Not Found errors.
Solutions:
- Ensure you're using the correct base path
/api/v1/for API endpoints - Verify the server is running and accessible
- Check the server logs for any startup errors
Logs Not Appearing
Problem: Test execution logs are not visible or incomplete.
Solutions:
-
Enable debug mode to see more detailed logging:
voiceflow server --debug -
Verify that environment variables (VF_API_KEY, etc.) are properly set or the api key is provided in the request is correct
Connection Refused Errors
Problem: Cannot connect to the server from external clients.
Solutions:
-
Verify the server is bound to the correct interface:
voiceflow server --host 0.0.0.0 --port 8080 -
Check firewall settings and ensure the port is open
-
For local testing, try connecting to
127.0.0.1instead oflocalhost
High Memory Usage
Problem: Server consumes excessive memory during long-running operations.
Solutions:
- Monitor test execution status and clean up completed executions
- Consider implementing execution cleanup routines
- Restart the server periodically for long-running deployments
Swagger Documentation Not Loading
Problem: Cannot access Swagger UI at /swagger/index.html.
Solutions:
-
Ensure Swagger is enabled (it's enabled by default):
voiceflow server --swagger=true -
Try accessing the full URL:
http://localhost:8080/swagger/index.html -
Check browser console for JavaScript errors
-
Verify CORS settings if accessing from a different domain
Updated 4 months ago