# Error in mediaCapturePermission API: \`TypeError: Cannot read properties of undefined (reading 'caps')\`

**URL:** <https://devforum.zoom.us/t/error-in-mediacapturepermission-api-typeerror-cannot-read-properties-of-undefined-reading-caps/96683>\
**Category:** Web\
**Created:** [October 12, 2023, 12:55pm UTC](https://devforum.zoom.us/t/error-in-mediacapturepermission-api-typeerror-cannot-read-properties-of-undefined-reading-caps/96683 "2023-10-12T12:55:04Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![amanda-recallai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amanda-recallai/32/44747_2.png) [@amanda-recallai](https://devforum.zoom.us/u/amanda-recallai)\
**Post date:** [October 20, 2023, 6:07am UTC](https://devforum.zoom.us/t/error-in-mediacapturepermission-api-typeerror-cannot-read-properties-of-undefined-reading-caps/96683/7 "2023-10-20T06:07:06Z")

</div>

Hmm, we’ve only seen this specific error happen **consistently** when the **host** is not present in the meeting. This can happen if you have a scheduled meeting set up so anyone can join before the host, and the bot has joined before the host has.

This bug occurs because the Zoom Web SDK requires the host to be in the meeting for the permission request to work, and if the host is not in the meeting this error will be raised.

Could this possibly be the case? I’d also be happy to get on a Zoom call to debug this with you if you’re open to it.

---

_[View the full topic](https://devforum.zoom.us/t/error-in-mediacapturepermission-api-typeerror-cannot-read-properties-of-undefined-reading-caps/96683)._
