hey guys i was trying the new websocket responses ...
# agents
a
hey guys i was trying the new websocket responses api from openai agent im getting this error
Copy code
{
  "message": "Task exception was never retrieved\nfuture: <Task finished name='_ResponsesWebsocket._run_task' coro=<_ResponsesWebsocket._run_ws() done, defined at /app/.venv/lib/python3.13/site-packages/livekit/plugins/openai/responses/llm.py:90> exception=APIConnectionError('OpenAI Responses WebSocket connection closed unexpectedly', body=None, retryable=True)>\nTraceback (most recent call last):\n  File \"/app/.venv/lib/python3.13/site-packages/livekit/plugins/openai/responses/llm.py\", line 150, in _run_ws\n    task.result()\n    ~~~~~~~~~~~^^\n  File \"/app/.venv/lib/python3.13/site-packages/livekit/agents/utils/log.py\", line 17, in async_fn_logs\n    return await fn(*args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/.venv/lib/python3.13/site-packages/livekit/plugins/openai/responses/llm.py\", line 126, in _recv_task\n    raise APIConnectionError(\n        message=\"OpenAI Responses WebSocket connection closed unexpectedly\"\n    )\nlivekit.agents._exceptions.APIConnectionError: OpenAI Responses WebSocket connection closed unexpectedly",
  "level": "ERROR",
  "name": "asyncio",
  "exc_info": "Traceback (most recent call last):\n  File \"/app/.venv/lib/python3.13/site-packages/livekit/plugins/openai/responses/llm.py\", line 150, in _run_ws\n    task.result()\n    ~~~~~~~~~~~^^\n  File \"/app/.venv/lib/python3.13/site-packages/livekit/agents/utils/log.py\", line 17, in async_fn_logs\n    return await fn(*args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/.venv/lib/python3.13/site-packages/livekit/plugins/openai/responses/llm.py\", line 126, in _recv_task\n    raise APIConnectionError(\n        message=\"OpenAI Responses WebSocket connection closed unexpectedly\"\n    )\nlivekit.agents._exceptions.APIConnectionError: OpenAI Responses WebSocket connection closed unexpectedly",
  "room": "interview_69a8680c26e4e3b73261f331_1772644958",
  "pid": 145,
  "job_id": "AJ_yfcT9sRUBeMh",
  "room_id": "RM_HGd9yDaHmJfq",
  "timestamp": "2026-03-04T17:23:15.646973+00:00"
}
t
Hi Arun Prakaash, ⚠️ This channel will be deleted soon ⚠️ Please use our new community at https://community.livekit.io for technical discussions and to post technical questions. The Slack community is not going away, but we are migrating technical questions to our new forum. Please see full details here.