PLease help me
# ask-ai
n
PLease help me
t
Thanks for reaching out, David. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Can you describe what you need help with? For example, are you having trouble with connecting to a room, using an SDK, AI agent integration, or something else? Sources: Community & Support | livekit/livekit_composite | DeepWiki
n
Yes my agent its ok i develop with this guide: https://docs.livekit.io/agents/start/voice-ai/ And console its ok. I deploy frontend app https://github.com/livekit-examples/agent-starter-react-native/blob/main/README.md But not connect. please help
t
Hey there! Let's walk through some troubleshooting steps together to get your agent-starter-react-native frontend app connection up and running smoothly. • Monitor connection state: Keep an eye on both the room connection and agent state. Your app should give you a heads-up if the agent doesn't join the room within 10 seconds or runs into any initialization hiccups. • Check error handling: Make sure your app is transparent about any connection issues. Look out for friendly alerts like "Oops, there was a problem connecting to the agent" and take a closer look at the error details. • Verify agent state: Your agent should be updating its state through stages like
initializing
,
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