# Web SDK: TypeError: Cannot read properties of undefined (reading 'caps')

**URL:** <https://devforum.zoom.us/t/web-sdk-typeerror-cannot-read-properties-of-undefined-reading-caps/122712>\
**Category:** Web\
**Created:** [December 18, 2024, 7:41pm UTC](https://devforum.zoom.us/t/web-sdk-typeerror-cannot-read-properties-of-undefined-reading-caps/122712 "2024-12-18T19:41:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zach\_rewatch](https://avatars.discourse-cdn.com/v4/letter/z/97f17d/32.png) [@zach\_rewatch](https://devforum.zoom.us/u/zach_rewatch)\
**Post date:** [December 18, 2024, 7:41pm UTC](https://devforum.zoom.us/t/web-sdk-typeerror-cannot-read-properties-of-undefined-reading-caps/122712/1 "2024-12-18T19:41:56Z")

</div>

I’m using WebSDK version 3.8.5. I’m getting this error intermittently when calling `ZoomMtg.mediaCapturePermission`

```auto
Error [TypeError]: Cannot read properties of undefined (reading 'caps')
    at rn (https://source.zoom.us/3.8.5/ui/zoomus-websdk-zoommtgMain.umd.min.js:2:1591322)
    at https://source.zoom.us/3.8.5/ui/zoomus-websdk-zoommtgMain.umd.min.js:2:470838
    at te (https://source.zoom.us/3.8.5/ui/zoomus-websdk-zoommtgMain.umd.min.js:2:446548)
    at I.r.mediaCapturePermission (https://source.zoom.us/3.8.5/ui/zoomus-websdk-zoommtgMain.umd.min.js:2:470164)

```

Another post indicates this has been a problem for over a year (I can’t link to it here, but can search for the caps error), but it’s not clear what the cause is, possibly caused by the host not being in the meeting?

Can you clarify what the root cause is and also can we get this fixed in the sdk to throw a proper error with relevant information? For example, other errors are thrown that look like this:

```auto
{
  method: 'mediaCapturePermission',
  status: false,
  errorCode: 1,
  errorMessage: 'not support grant local record permissin',
  result: null
}

```

---

<div class="post-metadata">

**Author:** ![zach\_rewatch](https://avatars.discourse-cdn.com/v4/letter/z/97f17d/32.png) [@zach\_rewatch](https://devforum.zoom.us/u/zach_rewatch)\
**Post date:** [January 2, 2025, 10:24pm UTC](https://devforum.zoom.us/t/web-sdk-typeerror-cannot-read-properties-of-undefined-reading-caps/122712/2 "2025-01-02T22:24:11Z")

</div>

I believe that this may be happening when the host isn’t present in the meeting, but I’m hoping someone from Zoom can clarify the following:

1. Does the host need to be present for `mediaCapturePermission` to work, even if the account has the computer recording settings enabled to automatically approve permission requests?
2. Can we get the SDK fixed to throw a proper error?

---

<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:** [February 2, 2025, 8:24am UTC](https://devforum.zoom.us/t/web-sdk-typeerror-cannot-read-properties-of-undefined-reading-caps/122712/3 "2025-02-02T08:24:47Z")

</div>

Closed on February 2, 2025, 8:24am UTC

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