deepgram / deepgram-js-sdk

Official JavaScript SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
127 stars 45 forks source link

TypeError: Cannot read properties of undefined (reading '_req') #210

Closed stevenou closed 6 months ago

stevenou commented 7 months ago

What is the current behavior?

Getting TypeError: Cannot read properties of undefined (reading '_req') after every session. It is received via the LiveTranscriptionEvents.Error listener.

Steps to reproduce

Honestly I don't know how to reproduce it but it seems to happen once at the end of every session.

Expected behavior

There shouldn't be any errors

Please tell us about your environment

Other information

Using this config, if it matters:

deepgram.listen.live(
  {
    model: "nova-2-voicemail",
    punctuate: true,
    filler_words: false,
    alternatives: 1,
    numerals: true,
    endpointing: 10,
    sample_rate: 8000,
    encoding: "mulaw",
    channels: 1,
    interim_results: true,
    smart_format: true
  }
);

Everything works correctly (e.g. audio stream is sent successfully and transcript received correctly), except that this error is always received.

lukeocodes commented 6 months ago

Ahh my guess is that _req doesn't exist how you're using it. I think that might be one of a few lines that is from the V2 SDK :/

stevenou commented 6 months ago

Is this something that you will be able to fix?

stevenou commented 6 months ago

confirmed fixed. thanks.