# 1.8.6 : no error, but not firing

**URL:** <https://devforum.zoom.us/t/1-8-6-no-error-but-not-firing/42522>\
**Category:** Web\
**Created:** [February 4, 2021, 8:45am UTC](https://devforum.zoom.us/t/1-8-6-no-error-but-not-firing/42522 "2021-02-04T08:45:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![extrao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/extrao/32/22155_2.png) [@extrao](https://devforum.zoom.us/u/extrao)\
**Post date:** [February 4, 2021, 8:45am UTC](https://devforum.zoom.us/t/1-8-6-no-error-but-not-firing/42522/1 "2021-02-04T08:45:20Z")

</div>

**Description**  
web 1.8.6 not working

**Error**  
no error message…

**Which version?**  
1.8.6

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
account meeting id sdk 1.8.6

> web app : (click ‘ouvrir le cafe dans le navigateur’) → nothing happens, no error. "Joining discussion’ on screen but nothing happens next.  
> console.log :  
> [Log] init (cafe, line 137)  
> [Log] lang (cafe, line 143)  
> [Log] pre load wasm success: – “source.zoom .us /1.8.6/lib/av/6290\_audio.encode.wasm” (zoom-meeting-1.8.6.min.js, line 2)  
> [Log] pre load wasm success: – “source.zoom .us /1.8.6/lib/av/6290\_video.decode.wasm” (zoom-meeting-1.8.6.min.js, line 2)  
> [Error] Failed to load resource: the server responded with a status of 403 () (webim.min.js.map, line 0)  
> [Log] join (cafe, line 146)  
> … and then nothing happens…

I have a SDK (app name Extrao)

marketplace.zoom . us/develop/apps//information

the problem is not solved, as not also for all the other people in the original thread…

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

- Device: tested on Mac, iOS
- OS: tested on macOS, iOS
- Browser:safari, chrome,opera : same

**Additional context**

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 4, 2021, 11:52pm UTC](https://devforum.zoom.us/t/1-8-6-no-error-but-not-firing/42522/2 "2021-02-04T23:52:46Z")

</div>

Hey @extrao,

Thank you for reaching out to the Zoom Developer Forum. Please provide the signature you’re using when attempting to join this meeting and I’ll investigate this further.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![extrao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/extrao/32/22155_2.png) [@extrao](https://devforum.zoom.us/u/extrao)\
**Post date:** [February 5, 2021, 1:21pm UTC](https://devforum.zoom.us/t/1-8-6-no-error-but-not-firing/42522/3 "2021-02-05T13:21:31Z")

</div>

php :

```
function generate_signature ( $api_key, $api_secret, $meeting_number, $role){
        $time = time() * 1000 - 30000;//time in milliseconds (or close enough)
        $data = base64_encode($api_key . $meeting_number . $time . $role);
        $hash = hash_hmac('sha256', $data, $api_secret, true);
        $_sig = $api_key . "." . $meeting_number . "." . $time . "." . $role . "." . base64_encode($hash);
        return rtrim(strtr(base64_encode($_sig), '+/', '-_'), '=');
}
generate_signature('','(my secret that I don't post here)','',0);

```

js :

```
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.8.6/css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.8.6/css/react-select.css" />
 <div id="zmmtg-root" style=margin:0;></div>
 <div id="aria-notify-area"></div>
    <script src="https://source.zoom.us/1.8.6/lib/vendor/react.min.js"></script>
    <script src="https://source.zoom.us/1.8.6/lib/vendor/react-dom.min.js"></script>
    <script src="https://source.zoom.us/1.8.6/lib/vendor/redux.min.js"></script>
    <script src="https://source.zoom.us/1.8.6/lib/vendor/redux-thunk.min.js"></script>
    <script src="https://source.zoom.us/1.8.6/lib/vendor/lodash.min.js"></script>
<script src="https://source.zoom.us/zoom-meeting-1.8.6.min.js"></script>
<script>
function join() {
gId('zmmtg-root','remove','hidden');
ZoomMtg.setZoomJSLib('https://source.zoom.us/1.8.6/lib', '/av'); 
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();
console.log('init');
ZoomMtg.init(
{
	leaveUrl: 'https://extrao.fr/cafe',
	isSupportAV: true,
	success: function() {
console.log('lang');
ZoomMtg.i18n.load('fr-FR');ZoomMtg.i18n.reload('fr-FR');
setTimeout(function() {
console.log('join');
ZoomMtg.join({
  signature: '(obtained from php above)',
  meetingNumber: '', passWord: '',
  userName: 'test',
  apiKey: '',
  userEmail: '(filled from logged in user)',
  role:0,
  lang:'fr-FR',
  success: (success) => { console.log('success',success) },
  error: (error) => { console.log('error',error) }
  });
},1000);
}

});		
				

}

```

success is never called.

---

<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:** [February 5, 2021, 10:49pm UTC](https://devforum.zoom.us/t/1-8-6-no-error-but-not-firing/42522/4 "2021-02-05T22:49:11Z")

</div>

Hey @extrao ,

> [@extrao](#):
>
> `gId('zmmtg-root','remove','hidden');`

I believe this is causing the issue. Please try using the Web SDK without changing it’s display properties so you can get it working first. 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![extrao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/extrao/32/22155_2.png) [@extrao](https://devforum.zoom.us/u/extrao)\
**Post date:** [February 8, 2021, 8:35am UTC](https://devforum.zoom.us/t/1-8-6-no-error-but-not-firing/42522/5 "2021-02-08T08:35:13Z")

</div>

hi, no this is my framework and just removes the “hidden” class (“display:none” css) from zmmtg-root. I removed this line and the one adding the class before, and the problem is the same. May I remind you : success is not even called by your ZoomMtg.join method, this is not a CSS problem. The last log is “join”, just before ZoomMtg.join .

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 9, 2021, 8:54pm UTC](https://devforum.zoom.us/t/1-8-6-no-error-but-not-firing/42522/6 "2021-02-09T20:54:48Z")

</div>

Hey @extrao,

Please try removing the the `lang` and `role` fields from the `join()` function as those are [not documented](https://marketplace.zoom.us/docs/sdk/native-sdks/web/reference).

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/3/439120d2bb0a562abe6194521bd70b1f5a6cafed.png)

If that doesn’t work, you may want to try replacing the arrow functions that you have with standard functions:

> <https://github.com/zoom/sample-app-web/blob/0dcfd8c9be2d2a1cc9f6127f781a776bb06b2495/Local/js/meeting.js#L61-L73>

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![extrao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/extrao/32/22155_2.png) [@extrao](https://devforum.zoom.us/u/extrao)\
**Post date:** [February 10, 2021, 6:11pm UTC](https://devforum.zoom.us/t/1-8-6-no-error-but-not-firing/42522/7 "2021-02-10T18:11:49Z")

</div>

yay ! some progress indeed… now “invalid signature”. my bad, I put ‘role’ in the wrong method.  
removing role:0 leads now to “invalid signature”. (errorCode: 3712 in method “join”)  
I can’t find why the signature is rejected, though… I copied the PHP from [https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/signature](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/signature) and passed the result directly into the JS :

```
function generate_signature ( $api_key, $api_secret, $meeting_number, $role){
date_default_timezone_set( "UTC" );
$time = time() * 1000 - 30000; 
$data = base64_encode($api_key . $meeting_number . $time . $role);
$hash = hash_hmac('sha256', $data, $api_secret, true);
$_sig = $api_key . "." . $meeting_number . "." . $time . "." . $role . "." . base64_encode($hash);
return rtrim(strtr(base64_encode($_sig), '+/', '-_'), '=');
}
generate_signature('','...','',0);
```

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 11, 2021, 9:37pm UTC](https://devforum.zoom.us/t/1-8-6-no-error-but-not-firing/42522/8 "2021-02-11T21:37:26Z")

</div>

Hey @extrao,

I’m glad to hear that helped! While you are supposed to create an SDK app, as you have done, you’ll actually want to authenticate with the Web SDK using a JWT API Key and Secret instead of the SDK Key and Secret.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/0/203ac8a061afdc31eda3bf81b23638249c1473ca.png)

Please try creating a JWT app and using the credentials from that.

Thanks,  
Max

---

<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:** [March 14, 2021, 7:38am UTC](https://devforum.zoom.us/t/1-8-6-no-error-but-not-firing/42522/9 "2021-03-14T07:38:01Z")

</div>

Closed on March 14, 2021, 7:38am UTC

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