# Getting 3008 code: please init meeting first! with web sdk even meeting is already running

**URL:** <https://devforum.zoom.us/t/getting-3008-code-please-init-meeting-first-with-web-sdk-even-meeting-is-already-running/9425>\
**Category:** Web\
**Created:** [March 24, 2020, 11:09am UTC](https://devforum.zoom.us/t/getting-3008-code-please-init-meeting-first-with-web-sdk-even-meeting-is-already-running/9425 "2020-03-24T11:09:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![webisinc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/webisinc/32/4036_2.png) [@webisinc](https://devforum.zoom.us/u/webisinc)\
**Post date:** [March 24, 2020, 11:09am UTC](https://devforum.zoom.us/t/getting-3008-code-please-init-meeting-first-with-web-sdk-even-meeting-is-already-running/9425/1 "2020-03-24T11:09:18Z")

</div>

I try to connect my site (drupal) with zoom live meeting/webinar.  
I’ve purchased webinar licences and  
how can I know if the signature that I’m creating is correct?  
the error message is: please init… and I did it… 3008 error code

ZoomMtg.init({  
debug: true,  
leaveUrl: meetConfig.leaveUrl,  
isSupportAV: true,  
success: function(e) {  
console.log(e);  
ZoomMtg.join({  
apiKey: meetConfig.apiKey,  
signature: meetConfig.signature,  
meetingNumber: meetConfig.meetingNumber,  
userName: meetConfig.userName,  
// Email required for Webinars  
userEmail: meetConfig.userEmail,  
passWord: “”,  
success: function (res) {  
console.log(‘join meeting success’);  
},  
error: function (res) {  
console.log(‘error’, res);  
}  
})  
},  
error: function() {  
console.log('failed to init meeting ’ + meetConfig.meetingNumber);  
}  
});

web sdk version: 1.72  
will appreciate your fast help!  
Thanks

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 24, 2020, 6:49pm UTC](https://devforum.zoom.us/t/getting-3008-code-please-init-meeting-first-with-web-sdk-even-meeting-is-already-running/9425/2 "2020-03-24T18:49:38Z")

</div>

Hey @webisinc, thanks for posting and using Zoom!

I don’t believe this to be an issue with the signature.

Have you included the following lines above the ZoomMtg.init() function?

```auto
ZoomMtg.preLoadWasm();

ZoomMtg.prepareJssdk();

```

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

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![webisinc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/webisinc/32/4036_2.png) [@webisinc](https://devforum.zoom.us/u/webisinc)\
**Post date:** [March 24, 2020, 6:57pm UTC](https://devforum.zoom.us/t/getting-3008-code-please-init-meeting-first-with-web-sdk-even-meeting-is-already-running/9425/3 "2020-03-24T18:57:32Z")

</div>

yes exactly, what can be the cause of this error?

---

<div class="post-metadata">

**Author:** ![miraje](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@miraje](https://devforum.zoom.us/u/miraje)\
**Post date:** [March 24, 2020, 7:53pm UTC](https://devforum.zoom.us/t/getting-3008-code-please-init-meeting-first-with-web-sdk-even-meeting-is-already-running/9425/4 "2020-03-24T19:53:00Z")

</div>

Hi Tommy,

I would like to extend the question.

Yes, indeed we do have  
ZoomMtg.preLoadWasm();  
ZoomMtg.prepareJssdk();  
lines in our code, exactly as it states in the Example App. Yet, it’s working for us in the example app and not working when we try to integrate this in our javascript.

Trying to investigate the issue more, we notice that in the Example App (both Local and CDN) versions, upon meeting init there is an additional request that is sent by the browser and looks like:

```
https://zoom.us/api/v1/wc/info?callback=localJsonpCallback&meetingNumber={{my-meeting-number}}&userName=WebSDK1.7.2%23CDN&passWord=&signature={{my-generated-signature}}&apiKey={{my-api-key}}&lang=en-US&userEmail=email%40gmail.com&cv=1.7.2&proxy=1&rwc=&_=1585078266958

```

Only if this request is successful, the meeting starts.  
BUT, this request does not happen when I try to run exactly SAME code from my app.

I copy MY javascript below (we use the CDN version, and I do connect all the scripts).

```
(function(){

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

  // it's option if you want to change the WebSDK dependency link resources. setZoomJSLib must be run at first
  // if (!china) ZoomMtg.setZoomJSLib('https://source.zoom.us/1.7.2/lib', '/av'); // CDN version default
  // else ZoomMtg.setZoomJSLib('https://jssdk.zoomus.cn/1.7.2/lib', '/av'); // china cdn option
  // ZoomMtg.setZoomJSLib('http://localhost:9999/node_modules/@zoomus/websdk/dist/lib', '/av'); // Local version default, Angular Project change to use cdn version
  ZoomMtg.preLoadWasm();

  ZoomMtg.prepareJssdk();

  var API_KEY = 'MY-API-KEY';

  /**
   * NEVER PUT YOUR ACTUAL API SECRET IN CLIENT SIDE CODE, THIS IS JUST FOR QUICK PROTOTYPING
   * The below generateSignature should be done server side as not to expose your api secret in public
   * You can find an eaxmple in here: https://marketplace.zoom.us/docs/sdk/native-sdks/Web-Client-SDK/tutorial/generate-signature
   */
  var API_SECRET = 'MY-API-SECRET';

  document.getElementById('join_meeting').addEventListener('click', function(e){
    e.preventDefault();

    var meetConfig = {
      apiKey: API_KEY,
      apiSecret: API_SECRET,
      meetingNumber: ACTUAL_MEETING_NUMBER,
      userName: 'sample user',
      passWord: "",
      leaveUrl: "https://zoom.us",
      role: 0
    };

    var signature = ZoomMtg.generateSignature({
      meetingNumber: meetConfig.meetingNumber,
      apiKey: meetConfig.apiKey,
      apiSecret: meetConfig.apiSecret,
      role: meetConfig.role,
      success: function(res){
        console.log(res.result);
      }
    });

    ZoomMtg.init({
      leaveUrl: 'http://www.zoom.us',
      isSupportAV: true,
      success: function () {
        ZoomMtg.join(
          {
            meetingNumber: meetConfig.meetingNumber,
            userName: meetConfig.userName,
            signature: signature,
            apiKey: meetConfig.apiKey,
            userEmail: 'email@gmail.com',
            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);
      }
    });

  });

})();

```

Please help, we’ve already spent hours on this issue, this is really crucial for us to get this working!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 24, 2020, 9:56pm UTC](https://devforum.zoom.us/t/getting-3008-code-please-init-meeting-first-with-web-sdk-even-meeting-is-already-running/9425/5 "2020-03-24T21:56:52Z")

</div>

Hey @miraje, @webisinc,

Depending on how your app is setup and if you are using the Web SDK [Local](https://www.npmjs.com/package/@zoomus/websdk) or [CDN](https://marketplace.zoom.us/docs/sdk/native-sdks/web/getting-started/integrate#cdn) version, try adding the following before the the PreLoad and Prepare functions:

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

```

Let me know if that works.

Also, we have an Angular Sample App here that correctly integrates the Local version of Web SDK via NPM / node\_modules.

> **[zoom/websdk-sample-angular](https://github.com/zoom/websdk-sample-angular)**
>
> Use the Zoom Web SDK in an Angular App. Contribute to zoom/websdk-sample-angular development by creating an account on GitHub.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![miraje](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@miraje](https://devforum.zoom.us/u/miraje)\
**Post date:** [March 24, 2020, 10:43pm UTC](https://devforum.zoom.us/t/getting-3008-code-please-init-meeting-first-with-web-sdk-even-meeting-is-already-running/9425/6 "2020-03-24T22:43:11Z")

</div>

Hi @tommy,  
Thanks for response.  
We are using CDN version for integration with our app.  
I have added this line  
ZoomMtg.setZoomJSLib(‘[https://source.zoom.us/1.7.2/lib](https://source.zoom.us/1.7.2/lib)’, ‘/av’);  
but unfortunately it didn’t help.

Looking into your angular version.

---

<div class="post-metadata">

**Author:** ![miraje](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@miraje](https://devforum.zoom.us/u/miraje)\
**Post date:** [March 24, 2020, 10:49pm UTC](https://devforum.zoom.us/t/getting-3008-code-please-init-meeting-first-with-web-sdk-even-meeting-is-already-running/9425/7 "2020-03-24T22:49:28Z")

</div>

Dunno, not sure the angular version would work for us,  
We are trying to integrate with Drupal CMS. e.g to present our webinar(s) on existing web page, I’m afraid angular would not work here.

I think that the major problem is that on Example App CDN version it sends request to [https://zoom.us/api/v1/wc/info](https://zoom.us/api/v1/wc/info) with parameters, but when we add exactly same script to CMS’ webpage – it doesn’t.

What could be wrong?  
With call to ZoomMtg.setZoomJSLib it also doesn’t ☹

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 25, 2020, 5:45am UTC](https://devforum.zoom.us/t/getting-3008-code-please-init-meeting-first-with-web-sdk-even-meeting-is-already-running/9425/8 "2020-03-25T05:45:30Z")

</div>

Hey @miraje,

Can you add a param to the ZoomMtg.Init success function and a console log to see if it is getting a response?

For example:

```auto
 ZoomMtg.init({
      leaveUrl: 'http://www.zoom.us',
      isSupportAV: true,
      success: function (res) {
        console.log(res)

```

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:36pm UTC](https://devforum.zoom.us/t/getting-3008-code-please-init-meeting-first-with-web-sdk-even-meeting-is-already-running/9425/10 "2020-08-21T19:36:22Z")

</div>

Closed on August 21, 2020, 7:36pm UTC


