WebSdk 1.7.0 Joining fail error message when trying to join a meeting

Hi Guys,

I am developing a web app and want people to join a meeting using my react web app.
I have created a JWT app. But every time I try to connect from react web app to join the meeting, I keep on getting this error message: “Joining fail”
{
method: “join”,
status: false,
errorCode: 1,
errorMessage: “joining fail”,
result: null
}

I have activated Zoom for developers and I am using websdk 1.7.0. I am currently using free account for testing.

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

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

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

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

const API_KEY = 'xxxx';
const API_SECRET = 'xxxx';
const MEETING_NUMBER = 'xxx-xxx-xxxx';
const USERNAME = 'Test';

const meetConfig = {
  apiKey: API_KEY,
  apiSecret: API_SECRET,
  meetingNumber: MEETING_NUMBER,
  userName: USERNAME,
  passWord: '',
  leaveUrl: 'zoom_us_link',
  role: 0
};

ZoomMtg.generateSignature({
  meetingNumber: meetConfig.meetingNumber,
  apiKey: meetConfig.apiKey,
  apiSecret: meetConfig.apiSecret,
  role: meetConfig.role,
  success(res) {
    console.log('signature', res.result);
    ZoomMtg.init({
      leaveUrl: 'zoom_us_link',
      success() {
        ZoomMtg.join(
          {
            meetingNumber: meetConfig.meetingNumber,
            userName: meetConfig.userName,
            signature: res.result,
            apiKey: meetConfig.apiKey,
            userEmail: 'xxx@gmail.com',
            passWord: meetConfig.passWord,
            success() {
              console.log('join meeting success');
            },
            error(res) {
              console.log(res);
            }
          }
        );
      },
      error(res) {
        console.log(res);
      }
    });
  }
});

Thank you in advance!

Hey @jayeshsukenkar,

What are value are you using for the MEETING_NUMBER? Make sure it is a real meetingID without dashes.

Thanks,
Tommy