Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deepgram.clients.live.v1.client:exception: websockets.ConnectionClosed #7

Open
velfox opened this issue Jun 27, 2024 · 2 comments
Open

Comments

@velfox
Copy link

velfox commented Jun 27, 2024

Hi, this project worked fine yesterday, but today it keeps trowing this error,

ERROR:deepgram.clients.live.v1.client:exception: websockets.ConnectionClosed

Does anyone know what the problem is and how to fix it?
Thanks in advance!

Consolelog:
python3 app_socketio.py
INFO:werkzeug: * Restarting with stat
WARNING:werkzeug: * Debugger is active!
INFO:werkzeug: * Debugger PIN: 125-268-530
Client connected
toggle_transcription {'action': 'start'}
Starting Deepgram connection
exception: websockets.ConnectionClosed
ERROR:deepgram.clients.live.v1.client:exception: websockets.ConnectionClosed
Failed to start connection

browser console log:
GET http://127.0.0.1:5001/socket.io/?EIO=4&transport=polling&t=P1PntDP net::ERR_CONNECTION_REFUSED

@jaindees
Copy link

jaindees commented Jul 6, 2024

I am facing the same issue and the connection gets closed. Not sure what is wrong in the code. Can anyone help?

@SandraRodgers Can you help?

@SandraRodgers
Copy link
Contributor

@jaindees and @velfox

Can you double-check the version of the deepgram-sdk that is being used in your virtual environment? I hit the same disconnect error when I didn't have the virtualenv running correctly. You can upgrade to deepgram-sdk==3.3.2 and that should work. (It works for me.) If you still have an issue, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants