billions-tomato-8365
07/31/2025, 7:56 AMtall-airline-16756
07/31/2025, 7:56 AMtall-airline-16756
07/31/2025, 7:57 AMbillions-tomato-8365
07/31/2025, 7:58 AMRoomIO -> AgentSession -> TranscriptSynchronizer -> RoomIO {"pid": 19338, "job_id": "AJ_DvLdw3BKk9wR"}
2025-07-31 104530,489 - DEBUG livekit.agents - using transcript io: AgentSession -> TranscriptSynchronizer -> RoomIO {"pid": 19338, "job_id": "AJ_DvLdw3BKk9wR"}
2025-07-31 104532,288 - WARNING livekit.plugins.silero - inference is slower than realtime {"delay": 0.4427050259776879, "pid": 19338, "job_id": "AJ_DvLdw3BKk9wR"}
2025-07-31 104600,784 - INFO livekit.agents - closing agent session due to participant disconnect (disable via RoomInputOptions.close_on_disconnect=False) {"participant": "sip_+97xxxxxx2", "reason": "CLIENT_INITIATED", "pid": 19338, "job_id": "AJ_DvLdw3BKk9wR"}
2025-07-31 104600,798 - DEBUG livekit.agents - stream closed {"participant": "sip_+97xxxxx2", "source": "SOURCE_MICROPHONE", "pid": 19338, "job_id": "AJ_DvLdw3BKk9wR"}
2025-07-31 104600,820 - DEBUG livekit.agents - session closed {"reason": "participant_disconnected", "error": null, "pid": 19338, "job_id": "AJ_DvLdw3BKk9wR"}
Traceback (most recent call last):
File "/hyperai/venv/lib/python3.12/site-packages/awscrt/http.py", line 242, in _on_body
self._on_body_cb(http_stream=self, chunk=chunk)
File "/hyperai/venv/lib/python3.12/site-packages/amazon_transcribe/httpsession.py", line 100, in _on_body
future.set_result(chunk)
File "/usr/lib/python3.12/concurrent/futures/_base.py", line 544, in set_result
raise InvalidStateError('{}: {!r}'.format(self._state, self))
concurrent.futures._base.InvalidStateError: CANCELLED: <Future at 0x7f70696f8fe0 state=cancelled>
Treating Python exception as error 3(AWS_ERROR_UNKNOWN)
2025-07-31 104610,800 - DEBUG livekit.agents - http_session(): creating a new httpclient ctx {"pid": 19338, "job_id": "AJ_DvLdw3BKk9wR"}
2025-07-31 104611,048 - INFO livekit.agents - process exiting {"reason": "", "pid": 19338, "job_id": "AJ_DvLdw3BKk9wR"}
2025-07-31 104611,048 - DEBUG livekit.agents - shutting down job task {"reason": "", "user_initiated": false, "pid": 19338, "job_id": "AJ_DvLdw3BKk9wR"}
2025-07-31 104611,056 - DEBUG livekit.agents - http_session(): closing the httpclient ctx {"pid": 19338, "job_id": "AJ_DvLdw3BKk9wR"}
2025-07-31 104611,057 - ERROR asyncio - Task exception was never retrieved
future: <Task finished name='Task-230' coro=<RoomService.delete_room() done, defined at /hyperai/venv/lib/python3.12/site-packages/livekit/api/room_service.py:98> exception=ServerDisconnectedError('Server disconnected')>
Traceback (most recent call last):
File "/hyperai/venv/lib/python3.12/site-packages/livekit/api/room_service.py", line 108, in delete_room
return await self._client.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/hyperai/venv/lib/python3.12/site-packages/livekit/api/twirp_client.py", line 121, in request
async with self._session.post(
File "/hyperai/venv/lib/python3.12/site-packages/aiohttp/client.py", line 1488, in aenter
self._resp: _RetType = await self._coro
^^^^^^^^^^^^^^^^
File "/hyperai/venv/lib/python3.12/site-packages/aiohttp/client.py", line 770, in _request
resp = await handler(req)
^^^^^^^^^^^^^^^^^^
File "/hyperai/venv/lib/python3.12/site-packages/aiohttp/client.py", line 748, in _connect_and_send_request
await resp.start(conn)
File "/hyperai/venv/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 532, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/hyperai/venv/lib/python3.12/site-packages/aiohttp/streams.py", line 672, in read
await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected {"pid": 19338, "job_id": "AJ_DvLdw3BKk9wR"}
2025-07-31 105148,165 - INFO livekit.agents - received job request {"job_id": "AJ_VKoct8XzDQU7", "dispatch_id": "", "room_name": "call-_+9xxxxxx2_ZMQGxaG8GVVR", "agent_name": "test-connect", "resuming": false}"
these are the logstall-airline-16756
07/31/2025, 7:59 AM*.turn.livekit.cloud.
2. Force TURN Usage: To work around firewall issues, you can set the client to use TURN servers only by adding:
connectOpts.rtcConfig = { iceTransportPolicy: 'relay' };
3. Keep an Eye on Server Performance: Check that the media server isn’t overloaded or running low on resources.
4. Check Connection Stages: Use the LiveKit Connection Tester to spot where ICE or DTLS might be failing.
5. Boost Device Performance: Look into any performance slowdowns on your device or app, especially if you’re seeing those inference delays.
If you’re still running into issues, it might help to dig deeper into the specific call session and server logs to find the exact cause. I’m here if you want to chat more about it!
Sources: protobufs/livekit_models.proto | livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi | Firewall Tips | Connecting to LiveKit | LiveKit Docs