500 error during Server-to-Server OAuth


I was using client id/secret/account id to authenticate a couple weeks ago but now it is giving me back a 500 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

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.json())
    # return response.json()['access_token']

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