# Fail to join the meeting - errorCode: 3713

**URL:** <https://devforum.zoom.us/t/fail-to-join-the-meeting-errorcode-3713/67189>\
**Category:** Web\
**Created:** [April 7, 2022, 4:52am UTC](https://devforum.zoom.us/t/fail-to-join-the-meeting-errorcode-3713/67189 "2022-04-07T04:52:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![acey2124](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/acey2124/32/36691_2.png) [@acey2124](https://devforum.zoom.us/u/acey2124)\
**Post date:** [April 7, 2022, 4:52am UTC](https://devforum.zoom.us/t/fail-to-join-the-meeting-errorcode-3713/67189/1 "2022-04-07T04:52:01Z")

</div>

**Description**  
I’m trying to create a component view of zoom meeting but i’m getting an error. Can someone help me? Thanks

**Browser Console Error**  
{type: ‘JOIN\_MEETING\_FAILED’, reason: ‘No permission.’, errorCode: 3713}

**Which Web Meeting SDK version?**  
Knowing the version can help us to identify your issue faster. [e.g. 1.9.9]

**Meeting SDK Code Snippets**  
import React, { useEffect, useState } from “react”;  
import ZoomMtgEmbedded from ‘@zoomus/websdk/embedded’;  
import KJUR from “jsrsasign”;

const SampleZoom = () =\> {  
const [signature, setSignature] = useState(’’);

const client = ZoomMtgEmbedded.createClient();

const generateSignature = (sdkKey, sdkSecret, meetingNumber, role) =\> {  
const iat = Math.round((new Date().getTime() - 30000) / 1000)  
const exp = iat + 60 \* 60 \* 2  
const oHeader = { alg: ‘HS256’, typ: ‘JWT’ }

```
const oPayload = {
  sdkKey: sdkKey,
  mn: meetingNumber,
  role: role,
  iat: iat,
  exp: exp,
  appKey: sdkKey,
  tokenExp: iat + 60 * 60 * 2
}

const sHeader = JSON.stringify(oHeader)
const sPayload = JSON.stringify(oPayload)
const signature = KJUR.jws.JWS.sign('HS256', sHeader, sPayload, sdkSecret)
setSignature(signature);

```

};

const initMeeting = () =\> {  
client.init({  
debug: true,  
zoomAppRoot: meetingSDKElement,  
language: ‘en-US’,  
customize: {  
meetingInfo: [  
‘topic’,  
‘host’,  
‘mn’,  
‘pwd’,  
‘telPwd’,  
‘invite’,  
‘participant’,  
‘dc’,  
‘enctype’,  
],  
toolbar: {  
buttons: [  
{  
text: ‘Custom Button’,  
className: ‘CustomButton’,  
onClick: () =\> {  
console.log(‘custom button’);  
},  
},  
],  
},  
},  
});  
};

const joinMeeting = () =\> {  
client.join({  
apiKey: process.env.REACT\_APP\_ZOOM\_SDK\_KEY,  
signature: signature, // role in signature needs to be 1  
meetingNumber: 81378006510,  
password: 292176,  
userName: “test”  
})  
};

useEffect(() =\> {  
generateSignature(process.env.REACT\_APP\_ZOOM\_SDK\_KEY, process.env.REACT\_APP\_ZOOM\_SDK\_SECRET, 81378006510, 1)  
if (signature) {  
initMeeting();  
}  
}, [signature]);

let meetingSDKElement = document.getElementById(‘meetingSDKElement’);

return (

  
JOIN MEETING  

  

  

  
)  
};

export default SampleZoom;

**Device (please complete the following information):**

- Chrome

---

<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:** [April 11, 2022, 3:21pm UTC](https://devforum.zoom.us/t/fail-to-join-the-meeting-errorcode-3713/67189/2 "2022-04-11T15:21:38Z")

</div>

Hey @acey2124 ,

Please use `sdkKey` instead of `apiKey` in your client.join() function

Example:  
`apiKey: process.env.REACT_APP_ZOOM_SDK_KEY` → `sdkKey: process.env.REACT_APP_ZOOM_SDK_KEY`

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![acey2124](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/acey2124/32/36691_2.png) [@acey2124](https://devforum.zoom.us/u/acey2124)\
**Post date:** [April 12, 2022, 2:22am UTC](https://devforum.zoom.us/t/fail-to-join-the-meeting-errorcode-3713/67189/3 "2022-04-12T02:22:04Z")

</div>

Hi @tommy ,

The key that i’m using in client.join() function was “sdkKey”. But still i’m encountering the “no permission” error.

sdkKey should be come from this right?

Screenshot: [Screenshot by Lightshot](https://prnt.sc/r9rrWANtwYKs)

or is it from JWT?

Thanks,  
Ace

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [April 12, 2022, 2:33am UTC](https://devforum.zoom.us/t/fail-to-join-the-meeting-errorcode-3713/67189/4 "2022-04-12T02:33:17Z")

</div>

@acey2124,

To confirm, are you testing with the latest version of the React Sample SDK 2.3.5 :

> **[GitHub - zoom/meetingsdk-sample-react: Use the Zoom Meeting SDK in a React App](https://github.com/zoom/meetingsdk-sample-react)**
>
> Use the Zoom Meeting SDK in a React App. Contribute to zoom/meetingsdk-sample-react development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![acey2124](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/acey2124/32/36691_2.png) [@acey2124](https://devforum.zoom.us/u/acey2124)\
**Post date:** [April 12, 2022, 2:41am UTC](https://devforum.zoom.us/t/fail-to-join-the-meeting-errorcode-3713/67189/5 "2022-04-12T02:41:17Z")

</div>

Hi @donte.zoom ,

Good dayy. Yes i’m using the latest version “@zoomus/websdk”: “^2.3.5”

Thanks,  
Ace

---

<div class="post-metadata">

**Author:** ![acey2124](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/acey2124/32/36691_2.png) [@acey2124](https://devforum.zoom.us/u/acey2124)\
**Post date:** [April 12, 2022, 2:55am UTC](https://devforum.zoom.us/t/fail-to-join-the-meeting-errorcode-3713/67189/6 "2022-04-12T02:55:32Z")

</div>

Hi All,

The zoom meeting is already working on my end. I just followed a guide on this url [meetingsdk-sample-react/App-New.js at master · zoom/meetingsdk-sample-react · GitHub](https://github.com/zoom/meetingsdk-sample-react/blob/master/src/App-New.js)

Thank you for your support @donte.zoom and @tommy

Have a great day!

Thanks,  
Ace

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [April 12, 2022, 2:56am UTC](https://devforum.zoom.us/t/fail-to-join-the-meeting-errorcode-3713/67189/7 "2022-04-12T02:56:46Z")

</div>

Awesome! Glad you are up and running, @acey2124!

Happy Coding,  
Donte

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 12, 2022, 12:57pm UTC](https://devforum.zoom.us/t/fail-to-join-the-meeting-errorcode-3713/67189/8 "2022-05-12T12:57:16Z")

</div>

Closed on May 12, 2022, 12:57pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
