You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you call the finish function on AsyncListenWebSocketClient I get an error which says "tasks cancelled error:"
Steps to reproduce
Start transcribing then call the finish function on the client
Expected behavior
The finish function should return True and end gracefully
Please tell us about your environment
We want to make sure the problem isn't specific to your operating system or programming language.
Operating System/Version: MacOS 15.1.1
Python Version: 3.11.5
**deepgram-sdk version: 3.8.0
Other information
I have gone through the code and found where the error is coming from, it on line 545 in clients/listen/v1/websocket/async_client.py await asyncio.wait_for(asyncio.gather(*tasks), timeout=10)
Its awaiting the _keep_alive_thread however a few lines before the task is canceled. Due to this wait_for will always fail as the task is canceled.
if self._keep_alive_thread is not None:
self._keep_alive_thread.cancel()
tasks.append(self._keep_alive_thread)
self._logger.notice("processing _keep_alive_thread cancel...")
The text was updated successfully, but these errors were encountered:
What is the current behavior?
When you call the finish function on AsyncListenWebSocketClient I get an error which says "tasks cancelled error:"
Steps to reproduce
Start transcribing then call the finish function on the client
Expected behavior
The finish function should return True and end gracefully
Please tell us about your environment
We want to make sure the problem isn't specific to your operating system or programming language.
Other information
I have gone through the code and found where the error is coming from, it on line 545 in clients/listen/v1/websocket/async_client.py
await asyncio.wait_for(asyncio.gather(*tasks), timeout=10)
Its awaiting the _keep_alive_thread however a few lines before the task is canceled. Due to this wait_for will always fail as the task is canceled.
The text was updated successfully, but these errors were encountered: