# Unable to get Access Token on Client Site

**URL:** <https://devforum.zoom.us/t/unable-to-get-access-token-on-client-site/42331>\
**Category:** API and Webhooks\
**Created:** [February 2, 2021, 7:01pm UTC](https://devforum.zoom.us/t/unable-to-get-access-token-on-client-site/42331 "2021-02-02T19:01:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TaylorA](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@TaylorA](https://devforum.zoom.us/u/TaylorA)\
**Post date:** [February 2, 2021, 7:01pm UTC](https://devforum.zoom.us/t/unable-to-get-access-token-on-client-site/42331/1 "2021-02-02T19:01:00Z")

</div>

**Description**  
We currently have an OAuth admin level app that is able to gather a user list as well as their meetings/meeting participants/webinars/zoom rooms/etc. Although when deploying this onto a client site, the app is breaking due to it’s inability to retrieve the refresh token from the zoom.app.config file. The app is able to use the token the first time, as well as update the refresh token after the first use, although on the second attempted use the refresh token is invalid/unavailable.

Again this all works fine locally, but when on a client server it is failing, just wondering if there are any other variables I may be missing.

**Error**  
ERROR CheckMeetingsDateFilter Error: Unable to obtain access token. at ZoomApp.Helpers.ZoomAppTokenManager.d\_\_12.MoveNext() in C:\Users\tarmstrong\source\repos\ZoomApp\Helpers\ZoomAppTokenManager.cs:line 65  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at ZoomApp.Apis.d\_\_18.MoveNext() in C:\Users\tarmstrong\source\repos\ZoomApp\Apis.cs:line 188  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at ZoomApp.TimekeeperDataCheck.d\_\_3.MoveNext() in C:\Users\tarmstrong\source\repos\ZoomApp\TimekeeperDataCheck.cs:line 114

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

**Which Endpoint/s?**

# /users/{userId}/meetings

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 3, 2021, 7:29pm UTC](https://devforum.zoom.us/t/unable-to-get-access-token-on-client-site/42331/2 "2021-02-03T19:29:00Z")

</div>

Hey @TaylorA,

Thank you for reaching out to the Zoom Developer Forum. When you see an error obtaining the `refresh_token` or `access_token`, have you logged the request, response body, and status for the call? If so, please share them here.

I think we should confirm that the API is being called with the expected values and that the API is returning what we expect first. If so, we can look closer at the logic involved to see if the issue lies there.

Thanks,  
Max

---

<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 6, 2021, 5:29am UTC](https://devforum.zoom.us/t/unable-to-get-access-token-on-client-site/42331/3 "2021-03-06T05:29:11Z")

</div>

Closed on March 6, 2021, 5:29am UTC

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