# Page stuck on "Joining Meeting"

**URL:** <https://devforum.zoom.us/t/page-stuck-on-joining-meeting/37083>\
**Category:** Web\
**Created:** [November 27, 2020, 10:49am UTC](https://devforum.zoom.us/t/page-stuck-on-joining-meeting/37083 "2020-11-27T10:49:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilrock](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ilrock/32/19388_2.png) [@ilrock](https://devforum.zoom.us/u/ilrock)\
**Post date:** [November 27, 2020, 10:49am UTC](https://devforum.zoom.us/t/page-stuck-on-joining-meeting/37083/1 "2020-11-27T10:49:03Z")

</div>

**Description**  
I’m trying to implement the web sdk inside my rails application. I’m generating the signature in my controller and then, inside my javascript file I’m running this:

```auto
import { Controller } from "stimulus"
import { ZoomMtg } from '@zoomus/websdk'

export default class extends Controller {
  static targets = ['container']

  connect() {
    this.initZoom()
  }

  initZoom() {
    ZoomMtg.setZoomJSLib('https://source.zoom.us/1.8.3/lib', '/av')

    ZoomMtg.preLoadWasm()
    ZoomMtg.prepareJssdk()
    
    const {signature, apiKey} = this.containerTarget.dataset

    ZoomMtg.init({
      leaveUrl: 'https://google.com',
      isSupportAV: true,
      success: function() {
        ZoomMtg.join({
          signature,
          meetingNumber: 'xxxxxxxxx',
          password: 'xxxxx',
          userName: 'ilrock',
          apiKey,
          role: 1,
          success: (success) => {
            console.log(success)
          },
          error: (error) => {
            console.log(error)
          }
        })
      }
    })
  }
}

```

When the page loads, it gets stuck on “Joining Meeting”. No log messages or errors are shown.

**Error**  
No error messages are shown

**Which version?**  
1.8.3

**Screenshots**  
Tried to upload a screenshot and it gives me an error. Just wanted to show you the page stuck on “Joining Meeting” and the console showing the following:

```auto
pre load wasm success: https://source.zoom.us/1.8.3/lib/av/5793_audio.encode.wasm
zoomus-websdk.umd.min.js:122860 pre load wasm success: https://source.zoom.us/1.8.3/lib/av/5793_video.decode.wasm

```

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

- Device: Razer Blade stealth
- OS: Windows 10
- Browser: 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:** [November 30, 2020, 11:26pm UTC](https://devforum.zoom.us/t/page-stuck-on-joining-meeting/37083/2 "2020-11-30T23:26:48Z")

</div>

Hey @ilrock,

> [@ilrock](#):
>
> `password: 'xxxxx',`

I know this is a strange edge case, but please use `passWord` instead of `password`. Let me know if that fixes the issue for you. 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ilrock](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ilrock/32/19388_2.png) [@ilrock](https://devforum.zoom.us/u/ilrock)\
**Post date:** [December 1, 2020, 7:57am UTC](https://devforum.zoom.us/t/page-stuck-on-joining-meeting/37083/3 "2020-12-01T07:57:18Z")

</div>

Hey Tommy. That was just a test on my end. I get the same result using `passWord`

---

<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:** [December 2, 2020, 8:23pm UTC](https://devforum.zoom.us/t/page-stuck-on-joining-meeting/37083/4 "2020-12-02T20:23:15Z")

</div>

Hey @ilrock,

Can you also try removing the `role` property? If anything is incorrect in the ZoomMtg.join object, you will experience this issue. You can see the valid properties for the join object here:

> **[ZoomMtg - Documentation](https://marketplacefront.zoom.us/sdk/meeting/web/ZoomMtg.html#join)**

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ilrock](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ilrock/32/19388_2.png) [@ilrock](https://devforum.zoom.us/u/ilrock)\
**Post date:** [December 4, 2020, 3:48pm UTC](https://devforum.zoom.us/t/page-stuck-on-joining-meeting/37083/5 "2020-12-04T15:48:02Z")

</div>

Thanks! That worked, somehow I had found the `role` property in some documentation page. Maybe it was out of date.

I am now getting another error now. It says that the “Signature is expired”. I’m generating my signature on the fly for every page load inside of a rails controller.

This is the code

```auto
hash = Digest::SHA256.base64digest(ENV['ZOOM_SDK_SECRET'])
plain_signature = "#{ENV['ZOOM_SDK_KEY']}.XXXXXXX.#{Time.now.to_i}.1.#{hash}"

@zoom_signature = Base64.encode64(plain_signature)

```

Any idea of what this maybe due to? I wrote the above code using the js/python snippets as guideline.

I also tried generating the timestamps using `Time.now.to_i - 30000` but the result is identical.

---

<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:** [December 7, 2020, 9:06pm UTC](https://devforum.zoom.us/t/page-stuck-on-joining-meeting/37083/6 "2020-12-07T21:06:47Z")

</div>

Hey @ilrock,

Happy to hear we got the original issue sorted out! The `role` is required when [generating the Web SDK signature](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/signature), so maybe that is where you saw the `role` in the docs. 🙂

Now, for your Signature Expired issue, checkout this post here and let me know if it fixes the problem:

> [@Join meeting timeout or signature expired](https://devforum.zoom.us/t/join-meeting-timeout-or-signature-expired/8616/14):
>
> Hi @vijayk.kannan, For the signature issue, make sure to use the system time and make sure the time syncs with world time. Generate a signature by ZoomMtg.generateSignature. - Example of syncing your machine time using window 10 [e1b2c451-e93c-4238-b464-ead68f8cca69] Example for using Mac Generate a signature by customer web backend with sync server time. We are currently investigation to see if there is a sync issue on our end as well. We’ll follow up as soon as we’re done lo…

Thanks,  
Tommy

---

<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:** [January 7, 2021, 7:07am UTC](https://devforum.zoom.us/t/page-stuck-on-joining-meeting/37083/7 "2021-01-07T07:07:10Z")

</div>

Closed on January 7, 2021, 7:07am UTC

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