Hi Guys Facing this issue on production with Deepg...
# agents
b
Hi Guys Facing this issue on production with Deepgram on livekit @bored-accountant-30277 - Can you please look into this(Sorry for the direct ping) - its effecting our clients.
Copy code
{"message": "Error in _stt_task\nTraceback (most recent call last):\n  File \"/home/azureuser/QuantumLoop/EmmaLiveKit/.venv/lib/python3.12/site-packages/livekit/agents/stt/stt.py\", line 367, in __anext__\n    val = aw
ait self._event_aiter.__anext__()\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nStopAsyncIteration\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File
\"/home/azureuser/QuantumLoop/EmmaLiveKit/.venv/lib/python3.12/site-packages/livekit/agents/utils/log.py\", line 16, in async_fn_logs\n    return await fn(*args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^\n  File
\"/home/azureuser/QuantumLoop/EmmaLiveKit/.venv/lib/python3.12/site-packages/livekit/agents/voice/audio_recognition.py\", line 452, in _stt_task\n    async for ev in node:\n  File \"/home/azureuser/QuantumLoop/EmmaLive
Kit/.venv/lib/python3.12/site-packages/livekit/agents/voice/agent.py\", line 352, in stt_node\n    async for event in stream:\n  File \"/home/azureuser/QuantumLoop/EmmaLiveKit/.venv/lib/python3.12/site-packages/livekit
/agents/stt/stt.py\", line 370, in __anext__\n    raise exc  # noqa: B904\n    ^^^^^^^^^\n  File \"/home/azureuser/QuantumLoop/EmmaLiveKit/.venv/lib/python3.12/site-packages/livekit/agents/stt/stt.py\", line 251, in _m
ain_task\n    return await self._run()\n           ^^^^^^^^^^^^^^^^^\n  File \"/home/azureuser/QuantumLoop/EmmaLiveKit/.venv/lib/python3.12/site-packages/livekit/plugins/deepgram/stt.py\", line 488, in _run\n    ws = a
wait self._connect_ws()\n         ^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/azureuser/QuantumLoop/EmmaLiveKit/.venv/lib/python3.12/site-packages/livekit/plugins/deepgram/stt.py\", line 550, in _connect_ws\n    ws = awai
t asyncio.wait_for(\n         ^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.12/asyncio/tasks.py\", line 520, in wait_for\n    return await fut\n           ^^^^^^^^^\n  File \"/home/azureuser/QuantumLoop/EmmaLiveKi
t/.venv/lib/python3.12/site-packages/aiohttp/client.py\", line 1084, in _ws_connect\n    raise WSServerHandshakeError(\naiohttp.client_exceptions.WSServerHandshakeError: 408, message='Invalid response status', url=\"ws
<s://api.deepgram.com/v1/listen?model=nova-3&punctuate=true&smart_format=false&no_delay=true&interim_results=true&encoding=linear16&vad_events=true&sample_rate=8000&channels=1&endpointing=1200&filler_words=true&profanit>
y_filter=false&numerals=false&mip_opt_out=false&keyterm=sick+note&keyterm=fit+note&keyterm=doctor's+note&keyterm=myself&keyterm=doctor's+letter&keyterm=repeat+prescription&keyterm=medication&keyterm=prescription&keyter
m=Check+up&keyterm=Pill+review&keyterm=review&keyterm=Medical&keyterm=worse&keyterm=telephone+appointment&keyterm=referral&keyterm=Oral+thrush&keyterm=blood+test&keyterm=urine+test&keyterm=scan&keyterm=ultrasound&keyte
rm=test&keyterm=chest+pain&keyterm=breath&keyterm=asthma&keyterm=diabetes&keyterm=blood+pressure&keyterm=pregnancy&keyterm=contraception&keyterm=smear+test&keyterm=vaccination&keyterm=hospital+letter&keyterm=pharmacy&k
eyterm=district+nurse&keyterm=midwife&keyterm=flu&keyterm=jab&keyterm=vaccine&keyterm=repeat&keyterm=pain&keyterm=covid&keyterm=ibuprofen&keyterm=paracetamol&keyterm=sharp&keyterm=cough&language=en\"", "level": "ERROR"
, "name": "livekit.agents", "pid": 761732, "job_id": "AJ_5o8UJyN8RN2g", "timestamp": "2025-09-24T09:50:22.972040+00:00"}