# Error - Unable to load web SDK dependencies when deployed onto server which causes a black screen with no meeting

**URL:** <https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168>\
**Category:** Web\
**Created:** [March 21, 2022, 2:19pm UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168 "2022-03-21T14:19:50Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![santanoo.m](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/santanoo.m/32/36165_2.png) [@santanoo.m](https://devforum.zoom.us/u/santanoo.m)\
**Post date:** [March 21, 2022, 2:19pm UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/1 "2022-03-21T14:19:50Z")

</div>

**Description**  
When trying to use the web SDK on our website, the dependencies for the meeting fail to load with a 403 error on our AWS Amplify test server. This issue doesn’t occur on local testing.

**Browser Console Error**  
GET [https://source.zoom.us/2.2.0/lib/a](https://source.zoom.us/2.2.0/lib/a)]([https://source.zoom.us/2.2.0/11b/av/1501\_js\_media.min.js](https://source.zoom.us/2.2.0/11b/av/1501_js_media.min.js) net: :ERR\_ABORTED

Devtools failed to load source map: Could not load content for [https://source.zoom.us/2.2.0/lib/webim.min.js.map:](https://source.zoom.us/2.2.0/lib/webim.min.js.map:) HTTP error: status code 403, net::ERR\_HTTP\_RESPONSE\_CODE\_FAILURE

**Which Web Meeting SDK version?**  
[2.2.0]

**Meeting SDK Code Snippets**  
import { ZOOM\_API\_KEY, ZOOM\_LEAVE\_URL, ZOOM\_SIGNATURE\_ENDPOINT } from ‘@utils/constants’;

import React from ‘react’;

import { useAuth } from ‘@context/auth/authContext’;

import { useRouter } from ‘next/router’;

import axiosInstance from ‘@utils/axios’;

export default function JoinLive() {

```
const { user } = useAuth();

let meetId;

let meetPassword;

const role = 2;

const router = useRouter();

React.useEffect(async () => {

    const { ZoomMtg } = await import('@zoomus/websdk');

    // console.log('checkSystemRequirements');

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

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

    // ZoomMtg.preLoadWasm();

    ZoomMtg.prepareWebSDK();

    ZoomMtg.i18n.load('en-US');

    ZoomMtg.i18n.reload('en-US');

    console.log('loaded zoom sdk');

    let lsRequest = { livestreamId: router.query.livestreamId };

    console.log(lsRequest);

    let response = await axiosInstance.put('next/livestream/update', lsRequest).catch((error) => {

        console.log('livestream fetch error: ', error);

        return;

    });

    console.log('Response: ', response);

    if (response?.data?.isSuccessful) {

        meetId = response?.data?.meet?.meetId;

        meetPassword = response?.data?.meet?.meetPassword;

        console.log(response.data.meet);

    }

}, []);

const getSignature = (data) => {

    var meet_id = data.meet_id;

    var password = data.password;

    var user = data.user;

    console.log('########', meet_id, password);

    fetch(ZOOM_SIGNATURE_ENDPOINT + (role === 1 ? '_host' : '_attendee'), {

        method: 'POST',

        headers: { 'Content-Type': 'application/json' },

        body: JSON.stringify({

            meetingNo: meet_id,

            password: password,

        }),

    })

        .then((res) => res.json())

        .then((response) => {

            console.log('zoom signature response: ', response);

            startMeeting(response.signature, response?.meetingNumber, response?.password, user);

        })

        .catch((error) => {

            console.error('Afjja3######', error);

        });

};

const startMeeting = (signature, meeting_number, password, user) => {

    document.getElementById('zmmtg-root').style.display = 'block';

    // eslint-disable-next-line

    ZoomMtg.init({

        leaveUrl: ZOOM_LEAVE_URL,

        isSupportAV: true,

        disableRecord: false,

        success: (success) => {

            console.log(success);

            console.log('ZoomMtg.join parameters: ', signature, meeting_number, password, user);

            // eslint-disable-next-line

            ZoomMtg.join({

                signature: signature,

                meetingNumber: meeting_number,

                userName: user.email,

                apiKey: ZOOM_API_KEY,

                userEmail: user.email,

                passWord: password,

                success: (success) => {

                    console.log(success);

                    // eslint-disable-next-line

                    ZoomMtg.record({

                        record: true,

                    });

                },

                error: (error) => {

                    console.log(error);

                },

            });

        },

        error: (error) => {

            console.log(error);

        },

    });

};

const handleLiveJoin = () => {

    getSignature({

        meet_id: meetId,

        password: meetPassword,

        user: user,

    });

};

return (

    <>

        \

```

```
            \<link type="text/css" rel="stylesheet" href="https://source.zoom.us/2.2.0/css/bootstrap.css" />

            \<link type="text/css" rel="stylesheet" href="https://source.zoom.us/2.2.0/css/react-select.css" />

            \<script src="https://source.zoom.us/2.2.0/lib/vendor/react.min.js"></script>

            \<script src="https://source.zoom.us/2.2.0/lib/vendor/react-dom.min.js"></script>

            \<script src="https://source.zoom.us/2.2.0/lib/vendor/redux.min.js"></script>

            \<script src="https://source.zoom.us/2.2.0/lib/vendor/redux-thunk.min.js"></script>

            \<script src="https://source.zoom.us/2.2.0/lib/vendor/lodash.min.js"></script>

            \<script src="https://source.zoom.us/zoom-meeting-2.2.0.min.js"></script>

        \</head>

        \<button onClick={handleLiveJoin}>Join live</button>

    </>

);

```

}

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

**Screenshots**

 ![Screenshot (46)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/4/641c70a10ad8e21c9103b4ca6ca3bb9c350b208e.png)  
 ![Screenshot (47)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/c/5cc97d591afdf5b0bd0d47041db4feefdd4e4265.png)

Screenshot below from local testing where it does work

 ![Screenshot (48)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/b/9bd7e86770a3e37c532839688c6be43dec26fcd5.png)

---

<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:** [March 21, 2022, 8:51pm UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/2 "2022-03-21T20:51:13Z")

</div>

Hi, @santanoo.m,  
Welcome to the Zoom Developer Forum and thank you for posting. Are you able to confirm if your server is returning the correct cross-origin headers? Here is our help documentation for implementation guidance :

> **[Web SDK Gallery View](https://marketplace.zoom.us/docs/sdk/overview/improve-performance/#implementation-options)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Also, I kindly ask can you share the exact steps **to reproduce (if applicable)**:

Steps to reproduce the behavior:

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

Let me know if this helps.

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![santanoo.m](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/santanoo.m/32/36165_2.png) [@santanoo.m](https://devforum.zoom.us/u/santanoo.m)\
**Post date:** [March 22, 2022, 2:21pm UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/3 "2022-03-22T14:21:26Z")

</div>

Hi @donte.zoom,  
Sorry for the late reply, I’m not very knowledgeable about CORS.

The screenshot below shows the response for when trying to access 1501\_js\_media.min.js

 ![Screenshot (49)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/d/bd3e5bc48b0f2ea1059c6e77ffd37b3d07dde125.png)

The steps to replicate the problem aren’t easy to describe because the process of creating a meeting on our application are complicated.

---

<div class="post-metadata">

**Author:** ![santanoo.m](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/santanoo.m/32/36165_2.png) [@santanoo.m](https://devforum.zoom.us/u/santanoo.m)\
**Post date:** [March 22, 2022, 2:23pm UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/4 "2022-03-22T14:23:45Z")

</div>

I’m noticing an “Error from cloudfront” in the response headers. I’m not sure if that means anything though.

---

<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:** [March 22, 2022, 3:29pm UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/5 "2022-03-22T15:29:45Z")

</div>

Thank you for your response, @santanoo.m! Based on the screenshot, it is unclear if the correct headers are configured for your server. Could you also a screenshot of the request headers sections? Please note, you can use our Cross-Origin Isolation help documentation to verify if the headers are correct as well.

 ![Screen Shot 2022-03-22 at 11.27.37 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/4/b42c8c1bccfec6367d65195702e6ea1801065398.png)

### Implementing Cross-Origin guide

[https://marketplace.zoom.us/docs/sdk/overview/improve-performance/#implementation-options](https://marketplace.zoom.us/docs/sdk/overview/improve-performance/#implementation-options)

Have you checked out the AWS Configuring cross-origin resource sharing (CORS) help documentation:

> **[Configuring cross-origin resource sharing (CORS) - Amazon Simple Storage Service](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enabling-cors-examples.html)**
>
> Enable cross-origin resource sharing by setting a CORS configuration on your bucket using the AWS Management Console, the REST API, or the AWS SDKs.

Let me know if this helps.

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![santanoo.m](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/santanoo.m/32/36165_2.png) [@santanoo.m](https://devforum.zoom.us/u/santanoo.m)\
**Post date:** [March 22, 2022, 3:49pm UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/6 "2022-03-22T15:49:04Z")

</div>

Here’s a screenshot of the request headers

 ![Screenshot (50)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/0/50218a554f7d00ba7305298b2d9a80cc1add79af.png)

---

<div class="post-metadata">

**Author:** ![santanoo.m](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/santanoo.m/32/36165_2.png) [@santanoo.m](https://devforum.zoom.us/u/santanoo.m)\
**Post date:** [March 23, 2022, 5:22am UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/7 "2022-03-23T05:22:03Z")

</div>

I noticed something while testing locally on another device that it was loading a dependency from [https://source.zoom.us/2.2.0/lib/av/1501\_js\_media.min.js](https://source.zoom.us/2.2.0/lib/av/1501_js_media.min.js) (Has 403 error, Present in previous screenshots)

While locally on my device it was loading from [https://source.zoom.us/2.2.0/lib/av/1506\_js\_media.min.js](https://source.zoom.us/2.2.0/lib/av/1506_js_media.min.js)

 ![Screenshot (51)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/c/fc2217b4b52b533f355b4b361ffdd85d41791b68.png)

---

<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:** [March 23, 2022, 6:39am UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/8 "2022-03-23T06:39:09Z")

</div>

@santanoo.m,

Hi, @santanoo.m,

It looks like the appropriate CORS are not set, which helps to explain why the dependency is not loading.

 ![Screen Shot 2022-03-23 at 2.31.28 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/3/834aaf481c0c82aa3efcf2affa95ab4bd00cb028.png)

As noted, it is **highly recommend** to implement one of these three options offered in our Web SDK Gallery View support documentation. Once implemented, you can verify that the changes were applied to your site by entering either of the following in your browser console:

```auto
typeof SharedArrayBuffer === 'function'; // returns true or false

Or 

crossOriginIsolated; // returns true or false

```

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![santanoo.m](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/santanoo.m/32/36165_2.png) [@santanoo.m](https://devforum.zoom.us/u/santanoo.m)\
**Post date:** [March 23, 2022, 8:50am UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/9 "2022-03-23T08:50:14Z")

</div>

We managed to fix the issue with it by changing the ZoomMtg.setZoomJSLib(‘[https://source.zoom.us/2.2.0/lib](https://source.zoom.us/2.2.0/lib)’, ‘/av’); line to  
ZoomMtg.setZoomJSLib(‘[https://source.zoom.us/2.3.0/lib](https://source.zoom.us/2.3.0/lib)’, ‘/av’);

But now it’s come to our notice that on clicking the Participants button the meeting screen suddenly switches to black and displays an error saying React not defined.

Screenshot of error message:

 ![Screenshot (52)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/6/56d3a783b9147fe9dc707bc304752a590650c827.png)

---

<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:** [March 23, 2022, 12:39pm UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/10 "2022-03-23T12:39:36Z")

</div>

Gald you were able to resolve the dependency issue. Another developer reported a similar issue recently. I’ve linked the post which includes the solution for your reference:

> [@Bug - Clicking the Participants icon triggers Crash](https://devforum.zoom.us/t/bug-clicking-the-participants-icon-triggers-crash/65805/5):
>
> Hey @developer-whova , Looks like this is a new issue in version 2.3.0. I tested in 2.2.0 and did not experience this. We will fix it, stay updated here: [Changelog](https://marketplace.zoom.us/docs/changelog) In the meantime, you can add this react script to your index.html which will resolve the error and crash: \<script src="https://source.zoom.us/2.3.0/lib/vendor/react.min.js"\>\</script\> Thanks, Tommy

Let me know if that helps.

Thanks,  
Donte

---

<div class="post-metadata">

**Author:** ![santanoo.m](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/santanoo.m/32/36165_2.png) [@santanoo.m](https://devforum.zoom.us/u/santanoo.m)\
**Post date:** [March 23, 2022, 1:21pm UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/11 "2022-03-23T13:21:23Z")

</div>

Unfortunately, that didn’t help as we had already included

\<script src=“[https://source.zoom.us/2.2.0/lib/vendor/react.min.js](https://source.zoom.us/2.2.0/lib/vendor/react.min.js)”\>

in our code and changing to 2.3.0 didn’t help.

For the time being, we have disabled the button. I hope a proper solution for this will be available.

---

<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:** [March 23, 2022, 1:56pm UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/12 "2022-03-23T13:56:21Z")

</div>

@santanoo.m,

Perhaps the mix of V.2.2.0 and 2.3.0 dependencies is at the root of the behavior you are seeing. If you are able, please test with the latest build of the Web SDK 2.3.0.

> **[GitHub - zoom/sample-app-web: Zoom Web SDK Sample App](https://github.com/zoom/sample-app-web)**
>
> Zoom Web SDK Sample App. Contribute to zoom/sample-app-web development by creating an account on GitHub.

On the other hand, it is also worth sharing you can stay up-to-date with the latest news, updates, and fixes with our [change log](https://marketplace.zoom.us/docs/changelog).

Best,  
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:** [April 22, 2022, 11:57pm UTC](https://devforum.zoom.us/t/error-unable-to-load-web-sdk-dependencies-when-deployed-onto-server-which-causes-a-black-screen-with-no-meeting/66168/13 "2022-04-22T23:57:00Z")

</div>

Closed on April 22, 2022, 11:57pm UTC

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