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

[js-sdk] not getting INVALID_MEETING_ID error #16

Open
michael-dm opened this issue Feb 25, 2024 · 3 comments
Open

[js-sdk] not getting INVALID_MEETING_ID error #16

michael-dm opened this issue Feb 25, 2024 · 3 comments

Comments

@michael-dm
Copy link

Hello,

I'm trying out your service and have setup a simple demo, I wanted to test if I'm able to get reliable errors.

With latest js sdk, I you try to init & join a meeting that doesn't exists, you get a meeting-state-changed FAILED.
But no error event.

@michael-dm
Copy link
Author

Demo code :

  const meeting = VideoSDK.initMeeting({
    meetingId: 'wrongnumber',
    name: 'Participant',
    micEnabled: true,
    webcamEnabled: true,
    multiStream: false
  })

  meeting.on('error', (data) => {
    console.log('error', data)
  })

  meeting.on('meeting-state-changed', ({ state }) => {
    console.log('state-changed', state)
  })

  meeting.on('meeting-joined', () => {
    console.log('meeting-joined')
  })

  meeting.join()

@ishabodiwala
Copy link

Hello @michael-dm, sorry for the late reply. If the meeting ID is invalid, you will receive an error with the code INVALID_MEETING_ID in the onError event. You can refer to the documentation below for more information.

https://docs.videosdk.live/javascript/guide/video-and-audio-calling-api-sdk/get-notified/error-events

@michael-dm
Copy link
Author

@ishabodiwala Thanks for your answer.

I know this is what's supposed to happen, however in latest version of the client it's not !
See provided code sample above. This is never called with INVALID_MEETING_ID:

meeting.on('error', (data) => {
  console.log('error', data)
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants