# Internal server error on revoking access token for user authorised Oauth

**URL:** <https://devforum.zoom.us/t/internal-server-error-on-revoking-access-token-for-user-authorised-oauth/91913>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [July 17, 2023, 10:36am UTC](https://devforum.zoom.us/t/internal-server-error-on-revoking-access-token-for-user-authorised-oauth/91913 "2023-07-17T10:36:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![recoverlution](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@recoverlution](https://devforum.zoom.us/u/recoverlution)\
**Post date:** [July 17, 2023, 10:36am UTC](https://devforum.zoom.us/t/internal-server-error-on-revoking-access-token-for-user-authorised-oauth/91913/1 "2023-07-17T10:36:24Z")

</div>

Hi Zoom,  
We are trying to revoke an access token for a user authorized oauth app and getting an “Internal server error”. As per my observation that happens with expired access\_tokens. I want to know, does this happens when we use any expired access token?  
API endpoint : [https://zoom.us/oauth/revoke](https://zoom.us/oauth/revoke)  
[OAuth for user authorized apps](https://developers.zoom.us/docs/integrations/oauth/#revoking-an-access-token)

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [July 20, 2023, 8:00pm UTC](https://devforum.zoom.us/t/internal-server-error-on-revoking-access-token-for-user-authorised-oauth/91913/2 "2023-07-20T20:00:26Z")

</div>

Hi @recoverlution  
Thanks for reaching out.  
Let me do some testing on my end and I will get back to you but with the scenario you are describing I would say yes. An expired acess\_token can give you an error when revoking access token.  
But let me troubleshoot this on my end and I will get back to you

---

<div class="post-metadata">

**Author:** ![lgould](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@lgould](https://devforum.zoom.us/u/lgould)\
**Post date:** [August 23, 2023, 9:41pm UTC](https://devforum.zoom.us/t/internal-server-error-on-revoking-access-token-for-user-authorised-oauth/91913/3 "2023-08-23T21:41:56Z")

</div>

I’m experiencing the same thing and would add that in this situation `/revoke` is giving me a `200` but with this response body,

```auto
{"status":false,"errorCode":-1,"errorMessage":"500 Internal Server Error","result":null}

```

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 24, 2023, 9:37pm UTC](https://devforum.zoom.us/t/internal-server-error-on-revoking-access-token-for-user-authorised-oauth/91913/4 "2023-08-24T21:37:24Z")

</div>

Hi @lgould  
Thanks for reaching out to us and welcome to our community!  
Can you please make sure that you are using a valid access token and that it’s not expired?

---

<div class="post-metadata">

**Author:** ![lgould](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@lgould](https://devforum.zoom.us/u/lgould)\
**Post date:** [August 28, 2023, 3:24pm UTC](https://devforum.zoom.us/t/internal-server-error-on-revoking-access-token-for-user-authorised-oauth/91913/5 "2023-08-28T15:24:33Z")

</div>

Sorry should’ve been more clear, this is a situation where I know that I’m sending a invalid access token but I think the response could be improved. Returning a `200` in this case rather than say a `400` since the error message of `500 Internal Server Error` in the body doesn’t make it clear whether or not I made a mistake or if something is just wrong with the server.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 31, 2023, 9:10pm UTC](https://devforum.zoom.us/t/internal-server-error-on-revoking-access-token-for-user-authorised-oauth/91913/6 "2023-08-31T21:10:23Z")

</div>

Thanks for the clarification @lgould  
I will go ahead and do some testing on my end and update the Documentation team about this matter  
cheers,  
Elisa

---

<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:** [September 1, 2023, 9:11pm UTC](https://devforum.zoom.us/t/internal-server-error-on-revoking-access-token-for-user-authorised-oauth/91913/7 "2023-09-01T21:11:04Z")

</div>

Closed on September 1, 2023, 9:11pm UTC

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