errorCode: 3008, errorMessage: "Please init meeting first!"

I tried using the zoomus-jssdk package in my app and use the demo code shown in tutorials.

import React, { Component } from 'react';
import { ZoomMtg } from 'zoomus-jssdk';

const API_KEY = '<API_KEY>';
const API_SECRET = '<API_SECRET>';

ZoomMtg.setZoomJSLib('https://dmogdx0jrul3u.cloudfront.net/1.4.2/lib', '/av');
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();

export default class ZoomLive extends Component {
  componentDidMount() {
    const meetConfig = {
      apiKey: API_KEY,
      apiSecret: API_SECRET,
      meetingNumber: 1234567890,
      userName: 'Test user',
      passWord: '',
      leaveUrl: 'https://zoom.us',
      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: 'http://www.zoom.us',
          isSupportAV: true,
          success() {
            ZoomMtg.join({
              meetingNumber: meetConfig.meetingNumber,
              userName: meetConfig.userName,
              signature: res.result,
              apiKey: meetConfig.apiKey,
              userEmail: 'email@gmail.com',
              passWord: meetConfig.passWord,
              success() {
                console.log('join meeting success');
              },
              error(res) {
                console.log(res);
              }
            });
          },
          error(res) {
            console.log(res);
          }
        });
      }
    });
  }

  render() {
    return 'Loading';
  }
}

But keep getting error in ZoomMtg.join function. I tried the same api keys and secret in sample-web-app here (https://github.com/zoom/sample-app-web) and that seemed to work, so there doesn’t seem to be issue with my account configuration. As the code is minified I’m not able to debug much, but seems like the meeting status of object is set to empty here: if ('init' !== oe.currentMeetingInfo.status).

Hey @shahankit2313,

Are you init-ing the meeting first? Check out this: https://zoom.github.io/sample-app-web/ZoomMtg.html#init

Let me know if that helps

Yup I’m using the exact same code as in sample.

ZoomMtg.generateSignature({
  ...
  success(res) {
    ZoomMtg.init({
      ...
      success() {
        ZoomMtg.join({
          ...
          success() {
            console.log('join meeting success');
          },
          error(res) {
            console.log('join meeting error', res);
          }
        });
      },
      error(res) {
        console.log(res);
      }
    });
  }
});

Hey @shahankit2313

I found the issue,

Place these two lines above your meetConfig declaration

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

This should fix the “Please init meeting” error, but it’s possible another error could arise: “The account don’t enable API.” Which we are working on fixing.

Let me know if this fixes the “Please init meeting” error :slight_smile:

Hi @tommy ,

I had already added these two lines, but still getting the error. I updated the post with entire contents of file. Also I don’t think I would get account dont’t enable APIs because I tried scheduling a meeting from my account and use the meeting in the sample web app on github and it worked fine.

Hi @shahankit2313,

I am trying to reproduce your error. I will update you shortly.

Thanks!

@Ojus any updates? I’m still facing this issue.

@shahankit2313, we are working with our engineering team to resolve your issue.

I will respond to you once I get an update from the team. Thank you for the patience and sorry for the inconvenience caused.

Thanks.

1 Like