# 500 error during Server-to-Server OAuth

**URL:** <https://devforum.zoom.us/t/500-error-during-server-to-server-oauth/108269>\
**Category:** Authentication\
**Created:** [April 19, 2024, 6:19pm UTC](https://devforum.zoom.us/t/500-error-during-server-to-server-oauth/108269 "2024-04-19T18:19:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![n8bdayton](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/n8bdayton/32/57910_2.png) [@n8bdayton](https://devforum.zoom.us/u/n8bdayton)\
**Post date:** [April 19, 2024, 6:19pm UTC](https://devforum.zoom.us/t/500-error-during-server-to-server-oauth/108269/1 "2024-04-19T18:19:09Z")

</div>

[https://zoom.us/oauth/token](https://zoom.us/oauth/token)

> **[Server-to-Server OAuth](https://developers.zoom.us/docs/internal-apps/s2s-oauth/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

**Description**  
I was using client id/secret/account id to authenticate a couple weeks ago but now it is giving me back a 500 error.

**Error?**  
In Python I didn’t get much info, just \<Response [500]\>  
I also tried testing in Postman and the response contained a bunch of html for a Zoom error page which only said “500 Internal Server Error”

**How To Reproduce**  
This was the python function I used to attempt to get an auth token

```auto
token_url = 'https://zoom.us/oauth/token'

def get_bearer_token(token_url,client_id,client_secret,account_id):
    url = f"{token_url}?grant_type=account_credentials&account_id={account_id}"
    response = requests.post(url, auth=(client_id, client_secret))
    print(response)
    # print(response.json())
    # return response.json()['access_token']

```

---

<div class="post-metadata">

**Author:** ![n8bdayton](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/n8bdayton/32/57910_2.png) [@n8bdayton](https://devforum.zoom.us/u/n8bdayton)\
**Post date:** [April 22, 2024, 3:05pm UTC](https://devforum.zoom.us/t/500-error-during-server-to-server-oauth/108269/2 "2024-04-22T15:05:39Z")

</div>

Our Zoom admin recreated our client app and everything is working again. Not sure what the issue was but marking this as resolved.
