# Zoom web sdk "Init invalid parameter !" - error

**URL:** <https://devforum.zoom.us/t/zoom-web-sdk-init-invalid-parameter-error/33949>\
**Category:** Web\
**Created:** [October 21, 2020, 7:01pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-init-invalid-parameter-error/33949 "2020-10-21T19:01:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![brancaschulz](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@brancaschulz](https://devforum.zoom.us/u/brancaschulz)\
**Post date:** [October 21, 2020, 7:01pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-init-invalid-parameter-error/33949/1 "2020-10-21T19:01:23Z")

</div>

**Description**  
I’m linking the Zoom sdk with my react website following the guide [https://marketplace.zoom.us/docs/sdk/native-sdks/web](https://marketplace.zoom.us/docs/sdk/native-sdks/web)

**Error**  
The error message is “Init invalid parameters !!!”

**Which version?**  
1.8.1

My code:

```
ZoomMtg.init({
  debug: true,
  meetingNumber:,
  userName: 'Branca',
  userEmail: 'branxxxxxxx',
  passWord: 'xxxxxxx',
  apiKey: 'xxxxxxxxx',
  signature: 'xxxxxxx',
  participantId: 'UUID',
  leaveUrl: 'http://localhost:3000',
  success: (success) => {
    console.log('success')
  },
  error: (error) => {
    console.log('error')
  }
});

```

My imports:

```
        <link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.8.1/css/bootstrap.css" />
    <link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.8.1/css/react-select.css" />
    <script SameSite="Secure" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
    <script SameSite="Secure" src="https://source.zoom.us/1.8.1/lib/vendor/react.min.js"></script>
    <script SameSite="Secure" src="https://source.zoom.us/1.8.1/lib/vendor/react-dom.min.js"></script>
    <script SameSite="Secure" src="https://source.zoom.us/1.8.1/lib/vendor/redux.min.js"></script>
    <script SameSite="Secure" src="https://source.zoom.us/1.8.1/lib/vendor/redux-thunk.min.js"></script>
    <script SameSite="Secure" src="https://source.zoom.us/1.8.1/lib/vendor/jquery.min.js"></script>
    <script SameSite="Secure" src="https://source.zoom.us/1.8.1/lib/vendor/lodash.min.js"></script>

    <script async src="https://source.zoom.us/zoom-meeting-1.8.1.min.js"></script>

```

**Smartphone (please complete the following information):**

- Linux - ubuntu
- Pop!\_OS 20.04 LTS
- Chrome

**Additional context**  
I create a signature using the repository [git@github.com](mailto:git@github.com):zoom/websdk-sample-signature-node.js.git

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 22, 2020, 1:00pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-init-invalid-parameter-error/33949/2 "2020-10-22T13:00:16Z")

</div>

Hey @brancaschulz,

Can you make sure you’re using a valid Meeting ID in your ZoomMtg.init object? If you’re hard coding this for now, you will need to make sure a meeting is already created under your account with a valid ID.

Let me know if this helps,  
Will

---

<div class="post-metadata">

**Author:** ![brancaschulz](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@brancaschulz](https://devforum.zoom.us/u/brancaschulz)\
**Post date:** [October 22, 2020, 2:49pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-init-invalid-parameter-error/33949/3 "2020-10-22T14:49:40Z")

</div>

Hi Will.

Yes, I changed it just to not share my meet ID througth the internet. I got this code in my dashboard account, It’s my personal room.

Can you see something wrong in my code?

Thanks for the answer!

---

<div class="post-metadata">

**Author:** ![brancaschulz](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@brancaschulz](https://devforum.zoom.us/u/brancaschulz)\
**Post date:** [October 22, 2020, 4:52pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-init-invalid-parameter-error/33949/4 "2020-10-22T16:52:59Z")

</div>

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

How you can se in the image, that error was logged in “zoom-meeting-1.8.1.min.js:2” sdk, and the load isn’t appearing.

(when I was in production env with https, i didn’t receive the error to load css source “[https://source.zoom.us/1.8.1/css/bootstrap.css.map](https://source.zoom.us/1.8.1/css/bootstrap.css.map)”, but the “Init invalid parameter !!!” appear too)

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 23, 2020, 1:39pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-init-invalid-parameter-error/33949/5 "2020-10-23T13:39:23Z")

</div>

Hey @brancaschulz,

In taking another look at the code sample you provided, I can see that you’re including parameters like `meetingNumber`, `userName`, etc. directly inside your init function. These parameters should be included inside the join function, which should be nested within your init function. Please see the example in our Sample App here:

> <https://github.com/zoom/sample-app-web/blob/master/Local/js/meeting.js>

Let me know if this helps!  
-Will

---

<div class="post-metadata">

**Author:** ![brancaschulz](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@brancaschulz](https://devforum.zoom.us/u/brancaschulz)\
**Post date:** [October 26, 2020, 5:21pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-init-invalid-parameter-error/33949/6 "2020-10-26T17:21:46Z")

</div>

Hi Will.

I fixed the init function with the join function nested, but now, I have the error “THe meeting number is wrong”.

Can you help me? I’m using an personal meeting. Do you know if I should create a room in a diferent way, or I can use any meeting ID?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/9/49bb6eae0e6d94002bddd0929ed52206f9f6b4b7.png)

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 26, 2020, 8:39pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-init-invalid-parameter-error/33949/7 "2020-10-26T20:39:39Z")

</div>

Hi @brancaschulz,

Can you try scheduling a test meeting that is not your PMI, and use that meeting number instead? Please also ensure that the meeting you test with exists under your account.

If you still have issues after testing this, can you let me know the meeting ID so I can check our logs? 🙂

Thanks!  
Will

---

<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:** [November 26, 2020, 6:39am UTC](https://devforum.zoom.us/t/zoom-web-sdk-init-invalid-parameter-error/33949/8 "2020-11-26T06:39:46Z")

</div>

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