ZoomSDKEmbedded Join userId not correct

Getting this error. What should is the correct userID? Code below:

const client = ZoomMtgEmbedded.createClient();
StartVideo(client);
teleVisitService.Get().then((sig) =>
{ console.log(sig);
client.join({
sdkKey: process.env.SDK_KEY,
signature: sig,
meetingNumber: ‘3456236’,
password: ‘464’,
userName: ‘???’
})})
return () => { client.endMeeting(); }

Hi @alex.kumar ,

Thank you for your question! Did you assign a value to userIdentity/userName in your payload when generating your signature? If so, does it match the one used here in the join function?

Thanks,
Rehema

Yes, as folllows:

" const oPayload = {
sdkKey: ‘XXXXXXXXXXXXXX’,
mn: ‘2750514837’,
role: 1,
iat: iat,
exp: exp,
tokenExp: exp,
userName: “AlexKumar”
}

const client = ZoomMtgEmbedded.createClient();
StartVideo(client);
teleVisitService.Get().then((sig) =>
{ console.log(sig);
client.join({
sdkKey: process.env.SDK_KEY,
signature: sig,
meetingNumber: ‘3456236’,
password: ‘464’,
userName: ‘AlexKumar’
})})
return () => { client.endMeeting(); }

const sHeader = JSON.stringify(oHeader)
const sPayload = JSON.stringify(oPayload)
const sdkJWT = KJUR.jws.JWS.sign('HS256', sHeader, sPayload, 'XXXXXXXXXXXXXXXXXXXXXX')
return sdkJWT

Hi Rehma: Any other suggestions?

Hi @alex.kumar ,

If you try to join the meeting using the parameters defined here for client.join(), are you still getting the same error? Your sdk Key is not a required parameter when joining a session.

Thanks,
Rehema

Hi Rehma -

I looked at the documentation some more and added additional steps:

  • Oath server-to-server app to access Token
  • APP API to get zak token required to start WEB SDK - component view meeting.
    I can successfully join. However, I do not see any video. I can see a video of someone who joins using the Zoon client, but they can not see me either.

I still see userId error above.

How do I enable Video as a host on the component view? I would love to talk to someone live, I am willing to pay reasonable fee for consultation. Implementing ComponentView per the link below:

In react environment, when the app joins the meeting as host with the zak token (as stated in the documentation), I get the following widow - without a video or tool bar at the bottom.

May be there is bug in the SDK? Also see this in developer tools:

zoomus-websdk-embedded.umd.min.js:27749 Uncaught (in promise)

  1. {type: ‘INVALID_PARAMETERS’, reason: ‘userId is not correct’}
  2. reason: “userId is not correct”
  3. type: “INVALID_PARAMETERS”
  4. [[Prototype]]: Object

Any update with this issue ? The meeting is starting and infact we are able to communicate properly. But it just keeps on showing in the developer console. I am not sure what are the consequences of this message ? Does it lead to frozen frame of zoom client ? Has anyone observed ?