# Meeting bot to sample app gives error 3712

**URL:** <https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830>\
**Category:** Meeting SDK\
**Created:** [August 23, 2023, 10:59am UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830 "2023-08-23T10:59:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![osama1](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@osama1](https://devforum.zoom.us/u/osama1)\
**Post date:** [August 23, 2023, 10:59am UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/1 "2023-08-23T10:59:10Z")

</div>

I’m using this ([GitHub - zoom/meetingsdk-web-bot-sample: A bot implementation for the Web Meeting SDK built with Vanilla JS](https://github.com/zoom/meetingsdk-web-bot-sample)) sample app to test my bot joining the meeting. I’ve created an app on zoom marketplace but it is submitted for review yet. I want to test the implementation before that. Is it possible? If it is, why am I getting this error:

```auto
{method: 'join', status: false, result: 'Invalid signature.', errorMessage: 'Signature is invalid.', errorCode: 3712}
'Bot failed to leave the meeting, use visibilityState of hidden to trigger leave'

```

If it is not possible, how can I test my zoom app without going through all the steps to publish the app?

 ![Screenshot 2023-08-23 at 11.58.10 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/1/8123b619c665c4868445981028158ea56405da24.png)

I can confirm that I’m using the sdk credentials not the jwt ones like this:

```auto
ZoomMtg.join({
        signature: signature,
        sdkKey: sdkKey,

```

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [August 23, 2023, 12:06pm UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/2 "2023-08-23T12:06:37Z")

</div>

@osama1 can you share a sample of your signature?

---

<div class="post-metadata">

**Author:** ![osama1](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@osama1](https://devforum.zoom.us/u/osama1)\
**Post date:** [August 23, 2023, 12:18pm UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/3 "2023-08-23T12:18:29Z")

</div>

Thanks @chunsiong.zoom . Here you go:

```auto
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiJ2S1FrQjVGR1R6UzZJRkt0anJxNkd3IiwibW4iOiI4MjQwNzAxNTMzOCIsInJvbGUiOjAsImlhdCI6MTY5Mjc4Nzk4NywiZXhwIjoxNjkyNzk1MTg3LCJhcHBLZXkiOiJ2S1FrQjVGR1R6UzZJRkt0anJxNkd3IiwidG9rZW5FeHAiOjE2OTI3OTUxODd9.r-U5keaM3F1JYpFMI7YjHS3faT-i_Hd3GmsrFfYXlP8

```

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [August 23, 2023, 12:47pm UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/4 "2023-08-23T12:47:53Z")

</div>

> [@osama1](#):
>
> `3712`

@osama1 , are you using the clientID and clientSecret to sign the JWT token?  
You will need to create a **meeting sdk app type** , the screenshot you shared seems to be a different type of app type.

---

<div class="post-metadata">

**Author:** ![osama1](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@osama1](https://devforum.zoom.us/u/osama1)\
**Post date:** [August 23, 2023, 1:02pm UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/5 "2023-08-23T13:02:19Z")

</div>

I’m using this app to generate the jwt signature. [GitHub - zoom/meetingsdk-auth-endpoint-sample: Generate a Meeting SDK JWT to join Zoom meetings and webinars with the Meeting SDK.](https://github.com/zoom/meetingsdk-auth-endpoint-sample)  
It only used the sdk key

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [August 24, 2023, 12:44am UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/7 "2023-08-24T00:44:34Z")

</div>

@osama1 ,

**Meeting SDK App Type** should be the 1st one in the list. The 2nd one on the list is a **Zoom App- App Type**

Please use the ClientID and ClientSecret from Meeting SDK App Type “NV - MacOS - sdk”

---

<div class="post-metadata">

**Author:** ![osama1](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@osama1](https://devforum.zoom.us/u/osama1)\
**Post date:** [August 28, 2023, 5:22pm UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/8 "2023-08-28T17:22:11Z")

</div>

Thanks @chunsiong.zoom for you help. That worked. Although the bot is not recording the meeting nor asking the permissions. It leaves the meeting after a while.

---

<div class="post-metadata">

**Author:** ![kapadiaaryan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kapadiaaryan08/32/49552_2.png) [@kapadiaaryan08](https://devforum.zoom.us/u/kapadiaaryan08)\
**Post date:** [August 29, 2023, 8:54am UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/9 "2023-08-29T08:54:18Z")

</div>

Hi Chun,  
I also faced the same issue and was able to resolve it via your solution.  
Furthermore, I wished to ask that once meeting bot enters the meeting room and starts recording(using the sample bot), is it possible to extract the audio stream in real time?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [August 29, 2023, 10:39am UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/10 "2023-08-29T10:39:04Z")

</div>

> [@kapadiaaryan08](#):
>
> Furthermore, I wished to ask that once meeting bot enters the meeting room and starts recording(using the sample bot), is it possible to extract the audio stream in real time?

@kapadiaaryan08,

When the bot enters the meeting room, you can start rawrecording to get both video and audio stream in real time.

---

<div class="post-metadata">

**Author:** ![osama1](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@osama1](https://devforum.zoom.us/u/osama1)\
**Post date:** [August 29, 2023, 11:09am UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/11 "2023-08-29T11:09:24Z")

</div>

Hi @chunsiong.zoom can you point us to the relevant docs to start rawrecording using zoom web sdk? Thanks

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [August 29, 2023, 11:20am UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/12 "2023-08-29T11:20:44Z")

</div>

@osama1 ,

Raw recording is support on client SDK. It is not supported on Meeting SDK for Desktop (Linux, macOs, Windows).

---

<div class="post-metadata">

**Author:** ![osama1](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@osama1](https://devforum.zoom.us/u/osama1)\
**Post date:** [August 29, 2023, 1:35pm UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/13 "2023-08-29T13:35:28Z")

</div>

So if I understood it correctly, the sample app referred in this post would not be able to get raw recording rather I’d have to create a new app with client SDK if I want to have raw recording as well, right?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [August 30, 2023, 1:06am UTC](https://devforum.zoom.us/t/meeting-bot-to-sample-app-gives-error-3712/93830/14 "2023-08-30T01:06:44Z")

</div>

@osama1 ,

I’m not sure which sample app you are referring to.

You will need a meeting sdk app type for raw recording, existing meeting sdk app type will work fine as well
