Question about an error related to the websocket connection #1295
Replies: 4 comments
-
Thanks for asking your question. Please be sure to reply with as much detail as possible so the community can assist you efficiently. |
Beta Was this translation helpful? Give feedback.
-
Hey there! It looks like you haven't connected your GitHub account to your Deepgram account. You can do this at https://community.deepgram.com - being verified through this process will allow our team to help you in a much more streamlined fashion. |
Beta Was this translation helpful? Give feedback.
-
It looks like we're missing some important information to help debug your issue. Would you mind providing us with the following details in a reply?
|
Beta Was this translation helpful? Give feedback.
-
👋:skin-tone-3: For some context: A 1006 WebSocket error means: The connection was closed abnormally (that is, without a close frame being sent) by the peer. What it actually means: The issue I see in your code is:
The Fix:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For Speech to Text, when I tried to connect to Deepgram, the WebSocket connection kept failing. I believe the token is valid, but the connection closes as soon as it connects to Deepgram.(the WebSocket endpoint does not accept the connection) Why is this happening?
(The token's scope includes 'transcription:write', 'transcription:read', 'usage:read', and 'listen:stream')
here is the function that I wrote based on the document:
const setupDeepgramConnection = async (session: DeepgramSession) => {
return new Promise((resolve, reject) => {
console.log('Setting up Deepgram WebSocket connection...');
the error message is WebSocket closed { code: 1006, reason: '', wasClean: false }
Thank you
Beta Was this translation helpful? Give feedback.
All reactions