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

**URL:** <https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-cameradeviceslist/86542>\
**Category:** Web\
**Created:** [April 12, 2023, 9:25am UTC](https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-cameradeviceslist/86542 "2023-04-12T09:25:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tabun.souvik.83](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tabun.souvik.83/32/47510_2.png) [@tabun.souvik.83](https://devforum.zoom.us/u/tabun.souvik.83)\
**Post date:** [April 12, 2023, 9:25am UTC](https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-cameradeviceslist/86542/1 "2023-04-12T09:25:33Z")

</div>

Hello,

I have just started on a VSDK project, but got stuck at the very beginning, I have uploaded my code at [GitHub - souviiik/zoom-video-sdk-poc](https://github.com/souviiik/zoom-video-sdk-poc).

I created a basic CRA and then followed your sample React project to progress work.

I am getting below error,

**TypeError: Cannot read properties of undefined (reading ‘cameraDevicesList’)**

Please make updates in the config file with your own key and secret.

TIA.

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [April 12, 2023, 2:40pm UTC](https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-cameradeviceslist/86542/2 "2023-04-12T14:40:11Z")

</div>

I’m not 100% sure what is happening here, but I will try this out myself in the next couple of days and let you know what I find on my end. Thanks!

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [April 27, 2023, 4:48pm UTC](https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-cameradeviceslist/86542/3 "2023-04-27T16:48:47Z")

</div>

Sorry for the delay. I think what you have is a config or .env file that would need the Zoom credentials for the SDK to function correctly but I’m not 100% sure where that exactly.

---

<div class="post-metadata">

**Author:** ![ym.mkmkmk](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@ym.mkmkmk](https://devforum.zoom.us/u/ym.mkmkmk)\
**Post date:** [April 28, 2023, 1:49am UTC](https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-cameradeviceslist/86542/4 "2023-04-28T01:49:59Z")

</div>

I got same Error.  
I built react-demo using [zoom](https://github.com/zoom)/**[videosdk-web-sample](https://github.com/zoom/videosdk-web-sample)**

When I access from local computer, no problem.

Howeber, I access from another computer in local network, the error occured.  
when I access from outside network, the same error also occured.

the error is below.

```auto
Cannot read properties of undefined (reading 'cameraDevicesList')
TypeError: Cannot read properties of undefined (reading 'cameraDevicesList')
    at t.project (http://Another_computer_IP_Address/static/js/bundle.js:33777:30)
    at t._next (http://Another_computer_IP_Address/static/js/bundle.js:22449:20)
    at t.next (http://Another_computer_IP_Address/static/js/bundle.js:20797:32)
    at t._next (http://Another_computer_IP_Address/static/js/bundle.js:21853:31)
    at t.next (http://Another_computer_IP_Address/static/js/bundle.js:20797:32)
    at t._next (http://Another_computer_IP_Address/static/js/bundle.js:22637:65)
    at t.next (http://Another_computer_IP_Address/static/js/bundle.js:20797:32)
    at t._next (http://Another_computer_IP_Address/static/js/bundle.js:21853:31)
    at t.next (http://Another_computer_IP_Address/static/js/bundle.js:20797:32)
    at e.observe (http://Another_computer_IP_Address/static/js/bundle.js:21229:30)

```

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [April 28, 2023, 2:10am UTC](https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-cameradeviceslist/86542/5 "2023-04-28T02:10:39Z")

</div>

Hey @ym.mkmkmk @tabun.souvik.83

Thanks for your feedback.

Accessing the page via IP address without over HTTPS connection may result in issues.  
Did you see the warning message on the console?

> The page is not in a secure context, to use audio, video, screen, a secure context must be enabled.

> **[Secure contexts - Security on the web | MDN](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts)**
>
> A secure context is a Window or Worker for which certain minimum standards of authentication and confidentiality are met. Many Web APIs and features are accessible only in a secure context. The primary goal of secure contexts is to prevent MITM...

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![ym.mkmkmk](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@ym.mkmkmk](https://devforum.zoom.us/u/ym.mkmkmk)\
**Post date:** [April 28, 2023, 2:15am UTC](https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-cameradeviceslist/86542/6 "2023-04-28T02:15:32Z")

</div>

It’s solved! Thank you!

---

<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:** [May 28, 2023, 12:16pm UTC](https://devforum.zoom.us/t/typeerror-cannot-read-properties-of-undefined-reading-cameradeviceslist/86542/7 "2023-05-28T12:16:25Z")

</div>

Closed on May 28, 2023, 12:16pm UTC

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