lemon-king-63400
09/10/2025, 9:08 AM{
"message": "failed to connect to livekit, retrying in 4s",
"level": "WARNING",
"name": "livekit.agents",
"exc_info": "Traceback (most recent call last):\n File \"C:\\Users\\Sahil Dutta 2\\Desktop\\axl\\axlai-voice-livekit\\venv\\Lib\\site-packages\\livekit\\agents\\worker.py\", line 649, in _connection_task\n ws = await self._http_session.ws_connect(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Sahil Dutta 2\\Desktop\\axl\\axlai-voice-livekit\\venv\\Lib\\site-packages\\aiohttp\\client.py\", line 1084, in _ws_connect\n raise WSServerHandshakeError(\naiohttp.client_exceptions.WSServerHandshakeError: 404, message='Invalid response status', url='wss://<domain>/agent'",
"timestamp": "2025-09-05T05:19:25.009235+00:00"
}
tall-airline-16756
09/10/2025, 9:08 AMtall-airline-16756
09/10/2025, 9:09 AMlemon-king-63400
09/10/2025, 12:42 PMtall-airline-16756
09/10/2025, 12:43 PM<http://nginx.ingress.kubernetes.io/proxy-read-timeout|nginx.ingress.kubernetes.io/proxy-read-timeout>: "3600"
<http://nginx.ingress.kubernetes.io/proxy-send-timeout|nginx.ingress.kubernetes.io/proxy-send-timeout>: "3600"
<http://nginx.ingress.kubernetes.io/websocket-services|nginx.ingress.kubernetes.io/websocket-services>: "livekit-service"
<http://nginx.ingress.kubernetes.io/proxy-set-headers|nginx.ingress.kubernetes.io/proxy-set-headers>: |
Upgrade: $http_upgrade
Connection: "upgrade"
• It’s also a good idea to verify that the TLS certificate you’re using in your ingress configuration is valid and trusted by your clients.
• Make sure that port 7880 is open and accessible, as this is important for WebSocket signaling.
• Lastly, check that the WebSocket URL (like `wss://your-domain/agent`) is correctly routed to your LiveKit service.
If you’re still running into issues, could you please let me know if the WebSocket URL might be getting rewritten or blocked by any other ingress rules or network policies? I’m here to help you get this sorted out!
Sources: examples/egress.yaml | Self-hosting the Ingress Service | LiveKit Docs | README.md | Docs::Home