# ZoomSdk method 'getRunningContext' not working

**URL:** <https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933>\
**Category:** Zoom Apps\
**Created:** [January 23, 2023, 12:11pm UTC](https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933 "2023-01-23T12:11:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mubashira.salman](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mubashira.salman](https://devforum.zoom.us/u/mubashira.salman)\
**Post date:** [January 23, 2023, 12:11pm UTC](https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933/1 "2023-01-23T12:11:11Z")

</div>

In our app we’ve been using the zoomSdk method getRunningContext to determine the UI to be shown depending on the context ‘inMeeting’/‘inMainClient’. It had been working fine till I’d last worked on my app i.e. till Friday.

But since today I’ve been facing this issue that whenever I try to use this method in the main-client context, it returns this error:

```auto
zoom-apps-js-sdk.0.11.0.js?1674467014:154 Uncaught (in promise) Error: No Permission for this API. [code:80012, reason:require_meeting_role]
    at new ZoomApiError (zoom-apps-js-sdk.0.11.0.js?1674467014:154:32)
    at Object.<anonymous> (zoom-apps-js-sdk.0.11.0.js?1674467014:199:49)
    at ZoomSdk.native2js (zoom-apps-js-sdk.0.11.0.js?1674467014:169:45

```

But in the meeting context, it works as expected.  
I’ve tried updating the sdk to the latest version but that didn’t work either.

---

<div class="post-metadata">

**Author:** ![heangly](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/heangly/32/42477_2.png) [@heangly](https://devforum.zoom.us/u/heangly)\
**Post date:** [January 23, 2023, 4:25pm UTC](https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933/2 "2023-01-23T16:25:57Z")

</div>

hi @mubashira.salman we are able to reproduce the issue and reported it to the team to work on a fix

---

<div class="post-metadata">

**Author:** ![noelle.szombathy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noelle.szombathy/32/32782_2.png) [@noelle.szombathy](https://devforum.zoom.us/u/noelle.szombathy)\
**Post date:** [January 23, 2023, 6:31pm UTC](https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933/3 "2023-01-23T18:31:27Z")

</div>

We are also seeing this issue of `getRunningContext` not working inMeeting for non-hosts.

---

<div class="post-metadata">

**Author:** ![shawn.nikkila](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@shawn.nikkila](https://devforum.zoom.us/u/shawn.nikkila)\
**Post date:** [January 23, 2023, 7:51pm UTC](https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933/4 "2023-01-23T19:51:15Z")

</div>

Will throw our hat in the ring and say that we are also having this issue as of this morning. In our case, it’s failing when making the `config` API call. We’ve tried a few things to get around it with no luck. We have also not changed any of the permissions for our app in months.

Any ETA on a fix, so we can let our impacted users know?

---

<div class="post-metadata">

**Author:** ![brad.bicknell](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/brad.bicknell/32/42028_2.png) [@brad.bicknell](https://devforum.zoom.us/u/brad.bicknell)\
**Post date:** [January 23, 2023, 8:12pm UTC](https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933/5 "2023-01-23T20:12:22Z")

</div>

Just a note that we were able to work around the getRunningContext issue by manually setting the context to “inMeeting” by using the “getUserContext” method to detect a user’s meeting role. Otherwise we fallback to setting the running context to “inMainClient”.

---

<div class="post-metadata">

**Author:** ![heangly](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/heangly/32/42477_2.png) [@heangly](https://devforum.zoom.us/u/heangly)\
**Post date:** [January 23, 2023, 8:17pm UTC](https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933/6 "2023-01-23T20:17:33Z")

</div>

We have created a bug ticket for it and our team is working on it to solve the issue. I will keep you updating regarding this issue. Thanks

---

<div class="post-metadata">

**Author:** ![shawn.nikkila](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@shawn.nikkila](https://devforum.zoom.us/u/shawn.nikkila)\
**Post date:** [January 23, 2023, 8:55pm UTC](https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933/7 "2023-01-23T20:55:22Z")

</div>

Correction, the `config` API is actually working for us, but yes, it is failing on the `getRunningContext` call as well.

---

<div class="post-metadata">

**Author:** ![mubashira.salman](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mubashira.salman](https://devforum.zoom.us/u/mubashira.salman)\
**Post date:** [January 24, 2023, 11:46am UTC](https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933/8 "2023-01-24T11:46:32Z")

</div>

Hello, has this issue been fixed?

---

<div class="post-metadata">

**Author:** ![heangly](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/heangly/32/42477_2.png) [@heangly](https://devforum.zoom.us/u/heangly)\
**Post date:** [January 24, 2023, 5:55pm UTC](https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933/10 "2023-01-24T17:55:48Z")

</div>

@mubashira.salman@shawn.nikkila  
`getRunningContext` works as expected now. Thanks!

---

<div class="post-metadata">

**Author:** ![mubashira.salman](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mubashira.salman](https://devforum.zoom.us/u/mubashira.salman)\
**Post date:** [January 25, 2023, 6:38am UTC](https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933/11 "2023-01-25T06:38:49Z")

</div>

Yes, just verified it. Thank you! 🙌

---

<div class="post-metadata">

**Author:** ![heangly](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/heangly/32/42477_2.png) [@heangly](https://devforum.zoom.us/u/heangly)\
**Post date:** [January 26, 2023, 5:20pm UTC](https://devforum.zoom.us/t/zoomsdk-method-getrunningcontext-not-working/81933/12 "2023-01-26T17:20:35Z")

</div>


