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 using the v3 Deepgram SDK in a ClouldFlare worker, the LiveClient constructor creates a WebSocket with an invalid protocol when running deepGram.listen.live({ model: 'nova' });. This results in a "WebSocket Constructor: The protocol header token is invalid" error.
[mf:err] SyntaxError: WebSocket Constructor: The protocol header token is invalid. at new LiveClient at ListenClient.live at Object.fetch at async jsonError
Steps to reproduce
Call deepGram.listen.live({ model: 'nova' }) in ClouldFlare worker with Node.
Observe the "WebSocket Constructor: The protocol header token is invalid" error.
Expected behavior
Not produce error
Please tell us about your environment
Operating System/Version: MacOS Ventura
Language: TypeScript
Browser: Node / ClouldFlare worker
The text was updated successfully, but these errors were encountered:
Thanks for letting me know. It seems the cloudflare worker makes the SDK think it's not a browser version of the websocket, and tried to define headers.
What is the current behavior?
When using the v3 Deepgram SDK in a ClouldFlare worker, the LiveClient constructor creates a WebSocket with an invalid protocol when running
deepGram.listen.live({ model: 'nova' });
. This results in a "WebSocket Constructor: The protocol header token is invalid" error.[mf:err] SyntaxError: WebSocket Constructor: The protocol header token is invalid. at new LiveClient at ListenClient.live at Object.fetch at async jsonError
Steps to reproduce
deepGram.listen.live({ model: 'nova' })
in ClouldFlare worker with Node.Expected behavior
Not produce error
Please tell us about your environment
The text was updated successfully, but these errors were encountered: