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

done sent message to elevenlabs when closing connection #1091

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vengad-arrowhead
Copy link

Please describe the changes in your PR. If it is addressing an issue, please reference that as well.

Fix: Prevent further errors when closing ElevenLabs WebSocket connection

We now ensure that no additional messages are sent to ElevenLabs after an error occurs in the WebSocket connection. Previously, sending messages to an already errored-out connection caused further errors and prevented the WebSocket from closing cleanly. This issue was observed multiple times, resulting in failures to reconnect to ElevenLabs. This fix improves error handling and ensures seamless reconnection.

@markbackman
Copy link
Contributor

markbackman commented Jan 25, 2025

@aconchillo do you know why we were sending "text": "" before closing the websocket?

@vengad-arrowhead
Copy link
Author

@markbackman @aconchillo any update on the same ?

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

Successfully merging this pull request may close these issues.

2 participants