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

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

Closed
stevenou opened this issue Dec 2, 2023 · 3 comments · Fixed by #214 or #217
Closed

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

stevenou opened this issue Dec 2, 2023 · 3 comments · Fixed by #214 or #217
Assignees
Labels
bug Something isn't working

Comments

@stevenou
Copy link

stevenou commented Dec 2, 2023

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

  • Operating System/Version: Cloudflare Workers
  • Language: JS
  • Browser: N/A

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
Copy link
Contributor

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
Copy link
Author

stevenou commented Dec 3, 2023

Is this something that you will be able to fix?

@lukeocodes lukeocodes self-assigned this Dec 5, 2023
@lukeocodes lukeocodes added the bug Something isn't working label Dec 5, 2023
@lukeocodes lukeocodes linked a pull request Dec 5, 2023 that will close this issue
@stevenou
Copy link
Author

stevenou commented Dec 6, 2023

confirmed fixed. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants