-
Notifications
You must be signed in to change notification settings - Fork 53
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
[BUG] Twilio error code not being returned when microphone access is blocked #95
Comments
Hi @chsweet, the team is tracking this internally and we've created a ticket for this. Thanks! |
Are there any updates on ETA? User denying microphone permissions is a fairly common use case, so this blocks us from migrating from the v1 to v2 Twilio client. |
Found that in Opened a PR to check if stream exists, before calling |
Great catch! Thanks so much. |
Can we prioritize a code review on the PR Siim submitted? 🙏 That looks like it may solve the problem. |
Hi @samusgray apologies for the delays. The team will discuss priorities to see when we can investigate this further. |
I left a review on the PR @samusgray |
Thank you so much! 🙏 cc @SiimMardus :) |
Should be fixed in #144 and will be released soon. |
Hello again, we upgraded to the latest and are still seeing this issue, just in a slightly different location in the codebase.
We're certain that when this error gets thrown it results in a broken user experience for our customers, so finally getting it fixed is a really high priority for us. Is there anything we can do to help debug or track down the root cause? Happy to provide any more information that may be useful. |
@samusgray what version did you upgrade to? The fix for this issue hasn't been released yet and still under internal testing. |
Oh, I didn't realize. We bumped to the latest and I noticed the error go away in our bug tracker, only to realize it popped back up at a different location, prompting this post. Sorry to bother! Any rough idea on when you you're aiming to have the next release out? |
@samusgray no worries! It should come out any day now. If you want to test sooner, please feel free to use the RC version. https://github.com/twilio/twilio-voice.js/releases/tag/2.3.2-rc1 |
Amazing. I'll start testing the RC in our staging envs. Thanks so much! |
or sensitive account information (API keys, credentials, etc.) when reporting this issue.
Code to reproduce the issue:
Block microphone access in browser. Create a new Device
Expected behavior:
When a new
Device
is created and the user has denied access to microphone we should be receiving the Twilio error code 31401 (updated from 31208) should be returned.Actual behavior:
We are not receiving the Twilio error code when the user has denied access to microphone. Instead we are getting an error. Slightly different in Chrome, Firefox, and Safari.
Chrome
error
Uncaught (in promise) TypeError: Cannot ready properties of null (reading 'updatePreferredURI'
Firefox
error
Uncaught (in promise) TypeError: f._stream is null
Safari
error
Unhandled Promise Rejections: TypeError: null is not an object (evaluating 'f._stream.updatePreferredURI
Software versions:
The text was updated successfully, but these errors were encountered: