# updateSharingCanvasDimension() but error canvas is falsy

**URL:** <https://devforum.zoom.us/t/updatesharingcanvasdimension-but-error-canvas-is-falsy/78846>\
**Category:** Web\
**Created:** [November 15, 2022, 7:00pm UTC](https://devforum.zoom.us/t/updatesharingcanvasdimension-but-error-canvas-is-falsy/78846 "2022-11-15T19:00:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![superprokid](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@superprokid](https://devforum.zoom.us/u/superprokid)\
**Post date:** [November 15, 2022, 7:00pm UTC](https://devforum.zoom.us/t/updatesharingcanvasdimension-but-error-canvas-is-falsy/78846/1 "2022-11-15T19:00:17Z")

</div>

**Description**  
When i’m using the updateSharingCanvasDimension() it make me have the error canvas is falsy, how do I fix it?

**Browser Console Error**  
{type: ‘INVALID\_PARAMETERS’, reason: ‘canvas is falsy’}

**Which Web Meeting SDK version?**  
1.4.1

**Meeting SDK Code Snippets**  
await this.zoomStream  
.updateSharingCanvasDimension(1211, 774.5)  
.catch(console.log);

**Device (please complete the following information):**

- Device: Window Computer
- OS: Window 11
- Browser: Chrome
- Browser Version: Version 107.0.5304.107 (Official Build) (64-bit)

---

<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:** [November 21, 2022, 7:41am UTC](https://devforum.zoom.us/t/updatesharingcanvasdimension-but-error-canvas-is-falsy/78846/2 "2022-11-21T07:41:33Z")

</div>

Hey @superprokid

Thanks for your feedback.

Are you using Video SDK Web instead of Meeting SDK Web?

The `stream.updateSharingCanvasDimension` doesn’t need a canvas parameter, could you please share the code snippets for use to troubleshoot the issue?

Thanks  
Vic

---

<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:** [December 21, 2022, 5:42pm UTC](https://devforum.zoom.us/t/updatesharingcanvasdimension-but-error-canvas-is-falsy/78846/3 "2022-12-21T17:42:08Z")

</div>

Closed on December 21, 2022, 5:42pm UTC

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