First Attempt at Deepgram Live Connection Failure #66
Replies: 3 comments 2 replies
-
Can you share your code? |
Beta Was this translation helpful? Give feedback.
-
Absolutely. There are two scenarios (I got them out of order as I cloned the server.js file and set it up for each scenario)
My current hypothesis is that the deepgramLive code is not robustly designed on you all's end, with two conflicting design elements: A) a timeout on the connection if no messages arrive after it's created, and B) an unparseable first message that prevents the connection from being create-able in the same callback function where parsing occurs. A follow-on hypothesis is that this is not detected (mostly) because most of the time, the first message occurs in the 10s window after the connection is created before the timeout. You can get a data point for this by running you all's sample proxy server code but waiting 20s before selecting yes on the 'getUserMedia' microphone prompt. I am 100% open to being wrong. com/55368487/208226928-51b4939e-8e4b-4b65-a698-873a68f2a025.png"> |
Beta Was this translation helpful? Give feedback.
-
Can you provide a link to the |
Beta Was this translation helpful? Give feedback.
-
Hello,
I more or less copypasted the Deepgram proxy server sample code. I seem to have a problem where the first time I run the code, the server crashes with the following error:
Thereafter, the server works properly.
How can I avoid this initial problem + server failure?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions