question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Catch error when attendees are unable to connect to signalling channel.

See original GitHub issue

What are you trying to do?

Several times we had the problem that an attendee wasn’t able to connect to the websocket signalling channel due to for example being on a VPN that doesn’t allow the attendee to connect. We want at that moment to be able to communicate to the attendee that the connection cannot be established and therefore redirect the user. However, we do not see a way of catching the error and responding to it as it happens before the audioVideoDidStop and also before the meetingSession.audioVideo.realtimeSubscribeToFatalError. We also tried wrapping the audioVideo.start() in a try-catch but without success.

If anyone knows a way to capture this error that would be awesome 😄

What documentation have you looked at so far?

We searched for a way to catch the error occurring when trying to connect to the meeting, or even before that. As mentioned above, the following options have been tried & looked at but without success:

Screenshot of the console-error

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rlebossecommented, Sep 22, 2020

@ltrung it takes 2 minutes to get the audioVideoDidStop event with statusCode = TaskFailed.

Is there a way to tell amazon-chime-sdk-js how much time we are ok to wait for audioVideoDidStart before sending audioVideoDidStop and stop trying to connect to the Chime Meeting please ?

If not, do you plan on working on this kind of feature ?

Thanks in advance !

2reactions
ltrungcommented, Sep 17, 2020

@HbZh

  1. It depends on what you define a meeting end but usually no. AudioVideoDidStop just mean the current meeting session stops for the attendee. They can still rejoin the same meeting unless it was deleted by the application using DeleteMeeting API or the meeting auto-end based on the policies in the comment of the code you pasted.
  2. No audio connection just means no attendee joins with an audio device.
Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQs | amazon-chime-sdk-js - Open Source at AWS
Billing starts when the attendee joins the meeting and leaves the meeting. Calling CreateAttendee or BatchCreateAttendee does not initiate billing, ...
Read more >
Signaling and video calling - WebRTC API - MDN Web Docs
If an error occurs while trying to get the local media stream, our catch clause calls handleGetUserMediaError() , which displays an appropriate ...
Read more >
How to Troubleshoot VoIP Issues with Palo Alto Networks ...
Complete the above steps and document it (i.e., signaling protocol, entities, topology and presence of NAT); Setup a packet capture on the Palo ......
Read more >
Error and Warning Dictionary | Twilio
Explore the full list of all possible Twilio REST API error codes. ... ERROR. HTTP connection over Twilio Interconnect is not allowed.
Read more >
Troubleshoot your YouTube live stream - Google Support
If you're having issues with your YouTube live stream, use the troubleshooting tips below. In addition to these tips, you can always post...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found