Description
I am using the above url to get the ZAK token for to start the meeting. But whenever I am sending the token I am geeting the following error.
Error? Joining meeting timeout
Token Error.
I am usiing Web SDK 2.7.0
Integrated in Angular 11
In the backend I am using the NodeJS
Also I have checked the token, it is generating from the ZOOM API. I am performing the following to get the ZAK token
Get the JWT token using Server to Server OAuth
Using that JWT, I am sending the request to the Zak Token API to get the ZAk token for a User (Licensed) attached to the main account.
And after that returning the ZAK token to the Angular end and using that in the above code snippet.
Also do note that If I do not use the ZAK token I can be able to start the meeting, but as because of the business account allows only two meeting to held simultaniously, I have attached two more user and added them as licensed user, and trying to start the meeting using one of those account’s ZAK token.
Please guide me if I am missing something here.
Thanks for sharing the snippet, @business1 ! It looks like you only shared how you defined the zoomJoinObj and omitted how it is used in the function. Can you share the whole function? Also, have you verified that the zak token returned is actually being used as expected?
joinMeeting(signature, zakToken: string = null): void {
const zoomJoinObj = {
signature,
meetingNumber: this.meetingNumber,
userName: this.userName,
sdkKey: this.apiKey,
passWord: this.passWord,
zak: null
};
if (zakToken) {
zoomJoinObj.zak = zakToken;
}
// Here the zoomJoinObj is being destrucred and used in the ZoomMtg.join function
ZoomMtg.join({
...zoomJoinObj,
success: (success) => {
if (this.storage.isStudent()) {
this.cookieService.setCookie('_zm_std_joined', '1', 1);
// TODO log
} else {
// TODO log
}
this.cookieService.removeCookie('mi');
this.cookieService.removeCookie('mp');
},
error: (error) => {
if (this.storage.isMaestro()) {
// maestro
// TODO log
} else {
// Student
// TODO log
}
}
});
}
And yes I have checked the ZAK token generation, also I have used a custom generated token returned from the API and hard coded the value in the zoomJoinObj object as well. But same result.
That’s strange! Have you tested using the zak token with our sample app? I am not able to reproduce that behavior on my end. Can you test with our sample and share the result?
Yes I have tested it with the ZOOM angular sample app provided by the ZOOM.
I have used the same code as describe in that.
One thing, I have attached two account into the main business account, and assigned two license to those accounts.
And for the meeting I am doing the following:-
Creating a ZOOM meeting using the zoom meeting API using the credentials from the business account.
When starting the meeting, I am usung the licensed user attached to the zoom main account to get the zak token.
With that zak token I am trying to start the meeting.
But the error persist.
Do note that If i start the meeting from that attached account it self from the zoom app installed in my phone, I can be able to start the meeting.
I am also facing the same issue, I am using Zoom Meeting SDK JavaScript sample and it say “Not support start meeting via tokens” Here is my start meeting function