Hey I am trying livekit's Recipes (<agent-starter-...
# ask-ai
b
Hey I am trying livekit's Recipes (agent-starter-python and agent-starter-react) but my agent doesnt join the frontend call. Can someone help me debug
t
Thanks for reaching out, Atul. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To debug why the agent is not joining the frontend call in the LiveKit examples, follow these steps: • Verify Configuration: Ensure the same LiveKit API key, secret, and URL are used in both the Python agent and React frontend. Check the
.env.local
file in the React app for correct credentials. • Check Logs: Open the browser console in the React app to look for errors related to the agent connection. Run the Python agent in debug mode using
python3 agent.py dev
and review its logs for connection or authentication issues. • Network Settings: Ensure required ports for WebRTC communication (e.g., 8080, 8081, 7880) are open and no firewall rules are blocking connections. • Timeouts: If the agent takes too long to connect, check the timeout settings in the
session-view.tsx
component of the React app and adjust if necessary. If you encounter specific error messages or need further assistance, please share: 1. Error messages from the browser console or agent logs 2. Details about your LiveKit server setup (e.g., cloud or self-hosted) 3. Versions of LiveKit and related libraries you are using This will help identify if the issue is related to configuration, network connectivity, or version compatibility. Sources: Web and mobile frontends | LiveKit Docs | TEMPLATE.md | README.md | Virtual avatar integrations | LiveKit Docs | Example Applications | livekit/livekit_composite | DeepWiki