Invalid parameter with Web SDK 1.7.7

I am getting an “Invalid parameter” error.

I followed all the steps from here:

and read most of the thread in this forum but been stuck here for days.

import { ZoomMtg } from '@zoomus/websdk';

ZoomMtg.setZoomJSLib('https://source.zoom.us/1.7.7/lib', '/av');

ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();

console.log('checkSystemRequirements'); console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));

const meetConfig = {
  apiKey: "my_api_key",
  leaveUrl: "https://someurl.com",
  userName: "Some Name",
  meetingNumber: "0123456789",
  passWord: "somepassword",
  role: 0,
};

function getSignature(meetConfig) {
  fetch(`https://someendpoint.herokuapp.com`, {
    method: 'POST',
    body: JSON.stringify({ meetingData: meetConfig })
  })
  .then(result => result.text())
  .then(
    response => {
      ZoomMtg.init({
        leaveUrl: meetConfig.leaveUrl,
        isSupportAV: true,
        success: function () {
          ZoomMtg.join(
            {
              signature: response,
              apiKey: meetConfig.apiKey,
              meetingNumber: meetConfig.meetingNumber,
              userName: meetConfig.userName,
              passWord: meetConfig.passWord,

              success: function(res){
                $('#nav-tool').hide();
                console.log('join meeting success');
              },

              error: function(res) {
                console.log(res);
              }
            }
          );
        },
        error: function(res) {
          console.log(res);
        }
      });
    })
}

getSignature(meetConfig);

I have a pro account and used JWT App API and API SECRET for the sample web heroku app from here:

Any help is appreciated, working with ZOOM API has been a nightmare for me…

2 Likes

^ I am having the same issue

1 Like

Exact same issue, been trying to get a hold of someone on Zoom side is so hard.

i’m getting intermittently different errors… and sometimes it works… :frowning:

Could anybody describe how to get the signature from my heroku app? What do I have to change in Sample App’s index.js? I’ve been trying to understand this for a week already :slight_smile: I have my heroku ready. But in index.js I have only input my KEY and SECRET… but I suppose I’d have to use something more secure like heroku. Basically… I’m not sure how to do the POST request. I’d appreciate if anyone could give me a working example (of index.js signature generation code) :slight_smile:

I found this in the reference document
https://marketplace.zoom.us/docs/sdk/native-sdks/web/reference

ZoomMtg.join({
meetingNumber: 123456789,
userName: ‘User name’,
userEmail: ‘’,
passWord: ‘’,
apiKey: ‘API_KEY’,
signature: ‘SIGNATURE’,
participantId: ‘UUID’, adding the participantId : ‘’ solved the issue for me.
success: function(res){console.log(res)},
error: function(res){console.log(res)}
});

Hey @anthony, @kadriko06, @sajarora, @arul.kapoor,

Sorry to hear you have had trouble with the Zoom API. Can you please try passing the meeting ID as a number and not a string?

Thanks,
Tommy