Zoom web sdk "Init invalid parameter !" - error

Description
I’m linking the Zoom sdk with my react website following the guide 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:zoom/websdk-sample-signature-node.js.git

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

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!

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”, but the “Init invalid parameter !!!” appear too)

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:

Let me know if this helps!
-Will

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?

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? :slight_smile:

Thanks!
Will

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