# Access denied when changing Zoom to version 3.1.6

**URL:** <https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314>\
**Category:** Meeting SDK\
**Created:** [March 8, 2024, 3:30pm UTC](https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314 "2024-03-08T15:30:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikola.sajic](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nikola.sajic](https://devforum.zoom.us/u/nikola.sajic)\
**Post date:** [March 8, 2024, 3:30pm UTC](https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314/1 "2024-03-08T15:30:15Z")

</div>

### Access denied when changing Zoom to version 3.1.6:

**Meeting SDK Type and Version**  
“@zoom/meetingsdk”: “^3.1.6”

**Description**  
All attempts to access the wasm and js files for the Zoom Meeting web SDK from the Zoom domain are resulting in a 403 error (Forbidden). With the 2.17.0 it was working fine and I followed the instructions provided for changing the zoom from “@zoomus/websdk” to “@zoom/meetingsdk”.

**Error?**

```auto
 <Error>
 <Code>AccessDenied</Code>
 <Message>Access Denied</Message>
 <RequestId>F2FYSC44FYJ07XZS</RequestId> 
<HostId>JQPl5oenq/CiEwQ0/GevQWzLk2F4Fdb6l6caZTiBm7ZFfYTeJOOJgMQliePd7eQn00iEaLTSRAo=</HostId>
 </Error>

```

**Troubleshooting Routes**  
My code sample is:

```auto
  ZoomMtg.setZoomJSLib("https://source.zoom.us/3.1.6./lib", "/av");  
  ZoomMtg.preLoadWasm();
  ZoomMtg.prepareWebSDK();
  
  ZoomMtg.init({
    leaveUrl: `${window.location.origin}/portal/event/${eventPublicId}`,
    patchJsMedia: true,
    success: (success: any) => {
      ZoomMtg.join({
        signature: resolvedData.signature,
        sdkKey: resolvedData.sdkKey,
        meetingNumber: resolvedData.meetingNumber,
        userName: resolvedData.userName,
        userEmail: resolvedData.userEmail,
        success: () => {
          ReactGA.event({
            action: ZOOM_EVENT_ATTENDANCE_ACTION,
            category: EVENT_ATTENDANCE_CATEGORY,
          });
        },
        error: (error: any) => console.log(error),
      });
    },
    error: (error: any) => console.log(error),
  });
  return <div id="meetingSDKElement"></div>;

```

**How To Reproduce**  
_Steps to reproduce the behavior including:_  
_1. Authentication method or app type_  
_2. Any errors_  
_3. Browser/client type and version_

---

<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:** [March 11, 2024, 4:28am UTC](https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314/2 "2024-03-11T04:28:52Z")

</div>

@nikola.sajic

ZoomMtg.setZoomJSLib(“[https://source.zoom.us/3.1.6./lib](https://source.zoom.us/3.1.6./lib)”, “/av”);  
ZoomMtg.setZoomJSLib(“[https://source.zoom.us/3.1.6/lib](https://source.zoom.us/3.1.6/lib)”, “/av”);

are you using an invalid URL? Note the addition `.` at the end of 3.1.6

---

<div class="post-metadata">

**Author:** ![nikola.sajic](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nikola.sajic](https://devforum.zoom.us/u/nikola.sajic)\
**Post date:** [March 11, 2024, 2:15pm UTC](https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314/3 "2024-03-11T14:15:12Z")

</div>

@chunsiong.zoom

I have removed the “.” in the end, and I have added some CDN scripts into index.html file, so now the code looks like this:

```auto
 ZoomMtg.setZoomJSLib("https://source.zoom.us/3.1.6/lib", "/av");
  ZoomMtg.preLoadWasm();
  ZoomMtg.prepareWebSDK();
  ZoomMtg.i18n.load("en-US");

  ZoomMtg.init({
    leaveUrl: `${window.location.origin}/portal/event/${eventPublicId}`,
    patchJsMedia: true,
    success: (success: any) => {
      ZoomMtg.join({
        signature: resolvedData.signature,
        sdkKey: resolvedData.sdkKey,
        meetingNumber: resolvedData.meetingNumber,
        userName: resolvedData.userName,
        userEmail: resolvedData.userEmail,
        success: () => {
          ReactGA.event({
            action: ZOOM_EVENT_ATTENDANCE_ACTION,
            category: EVENT_ATTENDANCE_CATEGORY,
          });
        },
        error: (error: any) => console.log(error),
      });
    },
    error: (error: any) => console.log(error),
  });
  return <div id="meetingSDKElement"></div>;

```

And in my index.html I have put in the tag:

```auto
<link
      type="text/css"
      rel="stylesheet"
      href="https://source.zoom.us/3.1.6/css/bootstrap.css"
    />
    <link
      type="text/css"
      rel="stylesheet"
      href="https://source.zoom.us/3.1.6/css/react-select.css"
    />
    <script async src="https://www.googletagmanager.com/gtag/js?id=%REACT_APP_GA_TRACKING_ID%"></script>
    <meta http-equiv="origin-trial" content="">
    <script src="https://source.zoom.us/3.1.6/lib/vendor/react.min.js"></script>
    <script src="https://source.zoom.us/3.1.6/lib/vendor/react-dom.min.js"></script>
    <script src="https://source.zoom.us/3.1.6/lib/vendor/redux.min.js"></script>
    <script src="https://source.zoom.us/3.1.6/lib/vendor/redux-thunk.min.js"></script>
    <script src="https://source.zoom.us/3.1.6/lib/vendor/lodash.min.js"></script>
    <script src="https://source.zoom.us/3.1.6/zoom-meeting-embedded-3.1.6.min.js"></script>
    <script src="https://source.zoom.us/zoom-meeting-3.1.6.min.js"></script>

```

and when I try to join meeting I get the black screen with the following errors in the console:

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

Also, I would like to note, that I do not get any errors in the Network tab.

---

<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:** [March 12, 2024, 5:17am UTC](https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314/4 "2024-03-12T05:17:57Z")

</div>

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

@nikola.sajic , can you check if all the versions are correctly updated to 3.1.6?  
I see that there might be reference to 2.1.6?

---

<div class="post-metadata">

**Author:** ![nikola.sajic](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nikola.sajic](https://devforum.zoom.us/u/nikola.sajic)\
**Post date:** [March 12, 2024, 9:07am UTC](https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314/5 "2024-03-12T09:07:42Z")

</div>

@chunsiong.zoom  
Hello, I have checked, everything is updated. The previous image had a narrow column so it seemed like it whas “2.1.6”, but actually it is not. Here is the image with full rows:

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

Also, I have found a solution for the same error on Zoom Developers forum [here](https://devforum.zoom.us/t/error-with-the-zoom-meeting-sdk-3-1-4/102880/3), and I have downgraded our react version to 16.14.0, but I still get the same error.

---

<div class="post-metadata">

**Author:** ![nikola.sajic](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nikola.sajic](https://devforum.zoom.us/u/nikola.sajic)\
**Post date:** [March 19, 2024, 2:16pm UTC](https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314/6 "2024-03-19T14:16:45Z")

</div>

@chunsiong.zoom I have upgraded zoom version to 3.5.1 and I still get these errors:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/e/8eac4f3c666531df569d4f6a006b7b9ef9de17c9.png)

---

<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:** [March 20, 2024, 1:52am UTC](https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314/7 "2024-03-20T01:52:30Z")

</div>

@nikola.sajic , for 3.5.1 there is a requirement to use only React 18. You cannot use React 16.

Can you try out the sample code as is, and let me know if you have any issues with the published sample code?

---

<div class="post-metadata">

**Author:** ![nikola.sajic](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nikola.sajic](https://devforum.zoom.us/u/nikola.sajic)\
**Post date:** [March 22, 2024, 2:12pm UTC](https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314/8 "2024-03-22T14:12:47Z")

</div>

@chunsiong.zoom Thanks for the heads up. Our react version is already 18.2.0.

I have put my `Zoom.init` method inside the `useEffect` and now i do have the video preview screen working fine, but when I click on the “Join” button, I get an error in the console which says:

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

I would also like to note that in the Network tab, everything is fine and there are no bad requests or requests that return errors.

---

<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:** [March 25, 2024, 2:26am UTC](https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314/9 "2024-03-25T02:26:15Z")

</div>

@nikola.sajic are you using the sample app?

---

<div class="post-metadata">

**Author:** ![nikola.sajic](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nikola.sajic](https://devforum.zoom.us/u/nikola.sajic)\
**Post date:** [March 26, 2024, 10:58am UTC](https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314/10 "2024-03-26T10:58:19Z")

</div>

@chunsiong.zoom I’ve managed to get the sample app working and used similar principles on our application. Thank you so much for the support! 🙂

---

<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:** [March 27, 2024, 3:13am UTC](https://devforum.zoom.us/t/access-denied-when-changing-zoom-to-version-3-1-6/105314/11 "2024-03-27T03:13:35Z")

</div>

Closed on March 27, 2024, 3:13am UTC


