Paul5
(Paul)
March 19, 2021, 10:21am
1
Using this template helps us debug your issues more effectively
Description
When calling ZoomMtg.init I’m getting the error in the console “Init invalid parameter !!!”
Error
Init invalid parameter !!!
Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT
Which Endpoint/s?
source dot zoom dot us (I can’t post links for some reason)
How To Reproduce (If applicable)
I was able to reproduce this error using the zoom sample: GitHub - zoom/sample-app-web: Zoom Web SDK Sample App .
Also this code:
ZoomMtg.setZoomJSLib(‘https://source.zoom.us/1.9.1/lib ’, ‘/av’);
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();
ZoomMtg.checkSystemRequirements();
ZoomMtg.init({
leaveUrl: leaveurl
success: function () {
console.log(“success”);
ZoomMtg.join({
signature: token,
meetingNumber: roomName,
userName: username,
apiKey: apikey,
success: (success) => {
console.log(success);
},
error: (error) => {
console.log(error);
}
});
},
error: function(res){
console.log(‘some error’, res);
}
});
Screenshots (If applicable)
Additional context
Paul5
(Paul)
March 19, 2021, 10:22am
3
I’m not allowed to post links - so couldn’t put these in the post:
MaxM
(Max M.)
March 22, 2021, 6:25pm
4
Hey @Paul5 ,
Thank you for reaching out to the Zoom Developer Forum. I tested this out on my end and wasn’t able to reproduce this behavior with the Sample Web App . I would make sure that the way you’re calling init
and join
matches what we have there:
ZoomMtg.init({
leaveUrl: meetingConfig.leaveUrl,
webEndpoint: meetingConfig.webEndpoint,
success: function () {
console.log(meetingConfig);
console.log("signature", signature);
ZoomMtg.i18n.load(meetingConfig.lang);
ZoomMtg.i18n.reload(meetingConfig.lang);
ZoomMtg.join({
meetingNumber: meetingConfig.meetingNumber,
userName: meetingConfig.userName,
signature: signature,
apiKey: meetingConfig.apiKey,
userEmail: meetingConfig.userEmail,
passWord: meetingConfig.passWord,
success: function (res) {
console.log("join meeting success");
console.log("get attendeelist");
ZoomMtg.getAttendeeslist({});
ZoomMtg.getCurrentUser({
This file has been truncated. show original
If that isn’t helpful, please send an email to developersupport@zoom.us with a link to this thread. In that email, please include the parameters that you are using for the init()
function as well as a screenshot of the error you’re seeing.
Thanks,
Max
system
(system)
Closed
April 22, 2021, 4:26am
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.