# Init invalid parameter!

**URL:** <https://devforum.zoom.us/t/init-invalid-parameter/46058>\
**Category:** Web\
**Created:** [March 19, 2021, 10:21am UTC](https://devforum.zoom.us/t/init-invalid-parameter/46058 "2021-03-19T10:21:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul5](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@Paul5](https://devforum.zoom.us/u/Paul5)\
**Post date:** [March 19, 2021, 10:21am UTC](https://devforum.zoom.us/t/init-invalid-parameter/46058/1 "2021-03-19T10:21:35Z")

</div>

## 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](https://github.com/zoom/sample-app-web).

Also this code:

ZoomMtg.setZoomJSLib(‘[https://source.zoom.us/1.9.1/lib](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**

---

<div class="post-metadata">

**Author:** ![Paul5](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@Paul5](https://devforum.zoom.us/u/Paul5)\
**Post date:** [March 19, 2021, 10:22am UTC](https://devforum.zoom.us/t/init-invalid-parameter/46058/3 "2021-03-19T10:22:47Z")

</div>

I’m not allowed to post links - so couldn’t put these in the post:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/3/f3ee13424aadcd167724bb792ccb7b7a474fcc4a.png)

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 22, 2021, 6:25pm UTC](https://devforum.zoom.us/t/init-invalid-parameter/46058/4 "2021-03-22T18:25:25Z")

</div>

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](https://github.com/zoom/sample-app-web). I would make sure that the way you’re calling `init` and `join` matches what we have there:

> <https://github.com/zoom/sample-app-web/blob/e5fff7f6cc45a11a2980b64227a1177f48969b9e/CDN/js/meeting.js#L58-L87>

If that isn’t helpful, please send an email to [developersupport@zoom.us](mailto: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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 22, 2021, 4:26am UTC](https://devforum.zoom.us/t/init-invalid-parameter/46058/5 "2021-04-22T04:26:20Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
