# Uncaught TypeError: Cannot read properties of undefined (reading 'getSupportedConstraints')

**URL:** <https://devforum.zoom.us/t/uncaught-typeerror-cannot-read-properties-of-undefined-reading-getsupportedconstraints/83433>\
**Category:** Web\
**Created:** [February 20, 2023, 3:52pm UTC](https://devforum.zoom.us/t/uncaught-typeerror-cannot-read-properties-of-undefined-reading-getsupportedconstraints/83433 "2023-02-20T15:52:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliseu.baldo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/eliseu.baldo/32/44574_2.png) [@eliseu.baldo](https://devforum.zoom.us/u/eliseu.baldo)\
**Post date:** [February 20, 2023, 3:52pm UTC](https://devforum.zoom.us/t/uncaught-typeerror-cannot-read-properties-of-undefined-reading-getsupportedconstraints/83433/1 "2023-02-20T15:52:21Z")

</div>

**Description**  
When updating from SDK 2.9.5 to 2.9.7, when joining a meeting, get 2 errors:

**Browser Console Error**

```auto
Uncaught TypeError: Cannot read properties of undefined (reading 'getSupportedConstraints')
    at Object.isSupportCameraPan (1502_js_media.min.js:1:44928)
    at Ga.getPTZCapability (vendors-node_modules_babel_runtime_helpers_taggedTemplateLiteral_js-node_modules_brightcove_r-4d0a38.af268ae16998b0f4f7a8.js:16330:134150)
    at Bg (vendors-node_modules_babel_runtime_helpers_taggedTemplateLiteral_js-node_modules_brightcove_r-4d0a38.af268ae16998b0f4f7a8.js:16330:258119)
    at Ug (vendors-node_modules_babel_runtime_helpers_taggedTemplateLiteral_js-node_modules_brightcove_r-4d0a38.af268ae16998b0f4f7a8.js:16330:257918)
    at vendors-node_modules_babel_runtime_helpers_taggedTemplateLiteral_js-node_modules_brightcove_r-4d0a38.af268ae16998b0f4f7a8.js:16330:259066
    at t.project (vendors-node_modules_babel_runtime_helpers_taggedTemplateLiteral_js-node_modules_brightcove_r-4d0a38.af268ae16998b0f4f7a8.js:16330:259625)
    at t._next (vendors-node_modules_babel_runtime_helpers_taggedTemplateLiteral_js-node_modules_brightcove_r-4d0a38.af268ae16998b0f4f7a8.js:16330:45877)
    at t.next (vendors-node_modules_babel_runtime_helpers_taggedTemplateLiteral_js-node_modules_brightcove_r-4d0a38.af268ae16998b0f4f7a8.js:16330:10650)
    at t._next (vendors-node_modules_babel_runtime_helpers_taggedTemplateLiteral_js-node_modules_brightcove_r-4d0a38.af268ae16998b0f4f7a8.js:16330:37079)
    at t.next (vendors-node_modules_babel_runtime_helpers_taggedTemplateLiteral_js-node_modules_brightcove_r-4d0a38.af268ae16998b0f4f7a8.js:16330:10650)

```

and

```auto
 GET https://rwcdv2.dv.zoom.us/wc/ping/93685483954?ts=1676907696281&auth=d0Zm3RIr1hEWU7IoC6JldUpL4GQ-QpJVzPC_bHWLLaw&rwcToken=L74fHYaUTb6mlOScmsYBRlqIS3IBxV2BFi2vMVX3K2s&dmz=1 404 (Not Found)

```

**Additional context**  
Running project locally, but context is Dev server.

---

<div class="post-metadata">

**Author:** ![eliseu.baldo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/eliseu.baldo/32/44574_2.png) [@eliseu.baldo](https://devforum.zoom.us/u/eliseu.baldo)\
**Post date:** [February 28, 2023, 2:17pm UTC](https://devforum.zoom.us/t/uncaught-typeerror-cannot-read-properties-of-undefined-reading-getsupportedconstraints/83433/2 "2023-02-28T14:17:33Z")

</div>

If anyone is having this issue, I found the reason: the 2.9.7 web sdk is making use of a browser property that’s only available in secure context (HTTPS).

> **[MediaDevices - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices)**
>
> The MediaDevices interface provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.

---

<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:** [March 31, 2023, 12:18am UTC](https://devforum.zoom.us/t/uncaught-typeerror-cannot-read-properties-of-undefined-reading-getsupportedconstraints/83433/3 "2023-03-31T00:18:31Z")

</div>

Closed on March 31, 2023, 12:18am UTC

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