Closed kikohs closed 1 day ago
I'm not sure if it's related.. but your code is instantiating the agent outside of entrypoint. this will not behave correctly.
I truncated the code. It's called in the entry point.
what is the error when these logs are printed out? upon closer inspection, these are just debug logs when TLS connection is established:
2024-11-11 17:59:11,840 - DEBUG livekit - tungstenite::handshake::client:95:tungstenite::handshake::client - Client handshake done. {"pid": 14382, "job_id": "AJ_6t9s5Wneavuv"}
There is no error. The handshake happens 20% of the time.
Otherwise nothing happens and I can't connect.
I try for 10min and can't connect. Then i retry for the 10nth time and it works.
I added a python client. Joining the room works perfectly all the time but the AI agent is not there. My main client is in JS.
are you using unique room names for each attempt? what you are describing sounds like the agent was not dispatched due to it joining the same room as the previous session
Yes. I'm reusing the same room. I didn't know that we needed to create a new room. I have a token TTL to 1 day.
sorry for the confusion there. give it a try by using new room names. it should work well
closing the issue, feel free to reopen if you continue to have problems.
Thanks. I will! Maybe the documentation can be updated.
Hello, New to livekit, I've struggling for the past days.
I run the same code, sometimes I connect to the Voice agent, sometimes not. I run exactly the example defaut code:
I've noticed that we have a double request (as reported in another issue), when all goes well I get this and it works perfectly.
However, 80% of the time (sometimes it takes 1 hour to work again), it stays like this:
And nothing happens. I'm using the free version, is it a limitation on the livekit servers. Too many people on the free plan?
Thank you for your help