#Connection closed

1 messages · Page 1 of 1 (latest)

glad mountain
#

Request (0a5986e5-93d8-4f1b-a0b0-1bcc09c1a5d4) took 1477.4s.
Error processing message data: received 1000 (OK); then sent 1000 (OK)
Task exception was never retrieved
future: <Task finished name='Task-12' coro=<AsyncLiveClient._keep_alive() done, defined at /home/administrator/.local/lib/python3.12/site-packages/deepgram/clients/live/v1/async_client.py:228> exception=ConnectionClosedOK(Close(code=1000, reason=''), Close(code=1000, reason=''), True)>
Traceback (most recent call last):
File "/home/administrator/.local/lib/python3.12/site-packages/deepgram/clients/live/v1/async_client.py", line 247, in _keep_alive
await self.send(json.dumps({"type": "KeepAlive"}))
File "/home/administrator/.local/lib/python3.12/site-packages/deepgram/clients/live/v1/async_client.py", line 265, in send
cnt = await self._socket.send(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/administrator/.local/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 635, in send
await self.ensure_open()
File "/home/administrator/.local/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 939, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: received 1000 (OK); then sent 1000 (OK)

whole ospreyBOT
#

Thanks for asking your question. Please be sure to reply with as much detail as possible so we can assist you efficiently. Such as:

  • Provide the request_id if you've a question about a transcription response.
  • The options you used or the api.deepgram.com URL you sent your request to, including parameters.
  • Any code snippets you can include.
  • Any audio you can include, or if you can't share it here please email it to us at [email protected] and provide a link to this thread.
glad mountain
#

Hi, any idea what is causing this error? It happened after some time of the script for trasncription running, about 1 or 2 hours

lost galleon
#

a 1000 means that the connection was closed as a normal operation or close

#

either the server closed the connection or you ended up sending empty/zero byte message (like a noop) which signals to the server you are going to close the connection

glad mountain
#

I might be sending zero byte inadvertently, thanks