Hi, I am running the livekit server locally on doc...
# agents
i
Hi, I am running the livekit server locally on docker for desktop in dev mode. (docker run --rm -p 7880:7880 -p 7881:7881 -p 7882:7882 -p 9090:9090 livekit/livekit-server:v1.8.3 --dev --bind 0.0.0.0) And, I have created a livekit agent in python. I am trying to run the agent in dev mode, but the connection to server fails with error: aiohttp.client_exceptions.WSServerHandshakeError: 400, message:"Invalid response status', url='ws://localhost:7880/agent' Can you please help resolving this error and get the agent connected to the server locally on win-11?
r
Probably better question for #self-hosting
But looks like you are getting stuck here. Can you reach that endpoint if you try it manually? https://github.com/livekit/livekit_composite/blob/8b5c7ae9/livekit/agents/livekit-agents/livekit/agents/worker.py#L642
i
@refined-appointment-81829 Sure, let me give it a try. Will post it at #self-hosting next time.
@refined-appointment-81829 I am able to verify hitting the wslocalhost7880/agent endpoint. Below is the response: "Websocket connected" After a few seconds gap, below gets printed. ++Rcv raw: b'\x89\x00' ++Raw decoded: fin=1 opcode=9 data=b'' ++Sent raw: b'\x8a\x80(\xe1!3' ++Sent decoded: fin=1 opcode=10 data='' Connection to remote host was lost. - goodbye.
Also when I try to run my agent python file in dev mode, the logs says livekit.agents - starting worker {"version": "1.2.2", "rtc-version": "1.0.12"} After a few seconds, the error below gets popped. aiohttp.client_exceptions.ConnectionTimeoutError: Connection timeout to host ws//localhost7880/agent INFO livekit.agents - shutting down worker {"id": "unregistered"} I am running this entire setup on a VDI, do you think that the websocket connections are blocked in my VDI? But I can create a room, list rooms and generate a token.
@refined-appointment-81829 Please help me here. Thanks!
r
This looks like a self hosted. Maybe ask in #self-hosting
Maybe you are trying to use Krisp or noise canceling? That is not supported in self hosted
i
Sure, will check. Thanks!