narrow-lion-53869
07/22/2025, 4:41 PMtall-airline-16756
07/22/2025, 4:43 PMtall-airline-16756
07/22/2025, 4:44 PMnarrow-lion-53869
07/22/2025, 4:45 PMtall-airline-16756
07/22/2025, 4:47 PMinitializing, listening, thinking, or speaking. If it seems stuck, dive into the agent logs to see what might be causing the holdup.
• Review agent logs: The agent worker has built-in retry logic and will log warnings if it can't connect. Check those logs for any repeated attempts or error messages that might give us a clue.
• React Native dependency issues: Seeing errors like "Cannot read properties of undefined (reading 'split')"? Try using npm instead of yarn, or run yarn-deduplicate to smooth out any dependency conflicts.
• Token generation: Double-check that your token server is creating valid tokens for the React Native app.
• Network connectivity: Ensure your app can reach the LiveKit server and that WebRTC connections aren't being blocked by firewalls or network policies.
• Agent dispatch timing: Make sure the agent is dispatched right when the token is generated to keep the connection timing just right.
Take a look through these areas and peek at any error messages or logs. They'll help us pinpoint exactly where the connection might be running into trouble. We've got this!
Sources: OpenAI Realtime API Quickstart | LiveKit Docs | agent-console/components/no-agent-notification.tsx | components/session-view.tsx | Web and mobile frontends | LiveKit Docs | livekit-agents/livekit/agents/worker.py