# Error with a newly generated token

**URL:** <https://devforum.zoom.us/t/error-with-a-newly-generated-token/99931>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [December 11, 2023, 3:14pm UTC](https://devforum.zoom.us/t/error-with-a-newly-generated-token/99931 "2023-12-11T15:14:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![EVant](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/evant/32/3511_2.png) [@EVant](https://devforum.zoom.us/u/EVant)\
**Post date:** [December 11, 2023, 3:14pm UTC](https://devforum.zoom.us/t/error-with-a-newly-generated-token/99931/1 "2023-12-11T15:14:17Z")

</div>

Hello

I’ve been having problems lately with the automatic closure of a session.  
The script runs smoothly, but there are a few calls that generate errors with the API: `https://api.zoom.us/v2/meetings/meeting_id/status`  
The log below shows the generation of a token and its use a few milliseconds later.

```auto
2023-12-11 15:00:07,391 INFO:HTTP Request: POST https://zoom.us/oauth/token?grant_type=account_credentials&account_id=SPsqoxwjTpqO-SLhtl30rw "HTTP/1.1 200 OK"
2023-12-11 15:00:07,392 INFO:New Token: Bearer eyJzdiI6IjAwMDAwMSIsImFsZyI6IkhTNTEyIiwidiI6IjIuMCIsImtpZCI6ImQyOWViYjc4LTdmNGMtNDIzNC04NGI0LTI5MmViYTBlZjRiZSJ9.eyJhdWQiOiJodHRwczovL29hdXRoLnpvb20udXMiLCJ1aWQiOiJFYWpTZGdPcVJVT0RzN1JHUVFZVTN3IiwidmVyIjo5LCJhdWlkIjoiY2M3Y2JhZTQ1MzY4MGYzYTdiZmUyNjAyZDU2NGQ0MzUiLCJuYmYiOjE3MDIzMDMyMDcsImNvZGUiOiJiMUN3NXdWSVFGaXVfdWR3YjRtZ2tnRUNyMmJhSTZLU1EiLCJpc3MiOiJ6bTpjaWQ6Y2duNUN0aHZTX2FXdW5YQ0ZoQk9zZyIsImdubyI6MCwiZXhwIjoxNzAyMzA2ODA3LCJ0eXBlIjozLCJpYXQiOjE3MDIzMDMyMDcsImFpZCI6IlNQc3FveHdqVHBxTy1TTGh0bDMwcncifQ.Ve49nYm4VnyhhYXMkgIE1AfeKCshY_8hdjVQgEXCnUJDL8q3hDT2cqapFkQhqFJ2z0zeyiVd8P2JTgIZd8Wv8w
2023-12-11 15:00:07,392 INFO:ClientId : cgn5CthvS_aWunXCFhBOsg
2023-12-11 15:00:07,397 INFO:PUT:https://api.zoom.us/v2/meetings/82322546443/status
2023-12-11 15:00:12,420 ERROR:Error : 
2023-12-11 15:00:12,420 ERROR:Headers Error : https://api.zoom.us/v2/meetings/82322546443/status
2023-12-11 15:00:12,421 ERROR:Client Header : Headers({'accept': '*/*', 'accept-encoding': 'gzip, deflate', 'connection': 'keep-alive', 'user-agent': 'python-httpx/0.24.0', 'authorization': '[secure]', 'content-type': 'application/json'})
2023-12-11 15:00:12,421 ERROR:authorization : Bearer eyJzdiI6IjAwMDAwMSIsImFsZyI6IkhTNTEyIiwidiI6IjIuMCIsImtpZCI6ImQyOWViYjc4LTdmNGMtNDIzNC04NGI0LTI5MmViYTBlZjRiZSJ9.eyJhdWQiOiJodHRwczovL29hdXRoLnpvb20udXMiLCJ1aWQiOiJFYWpTZGdPcVJVT0RzN1JHUVFZVTN3IiwidmVyIjo5LCJhdWlkIjoiY2M3Y2JhZTQ1MzY4MGYzYTdiZmUyNjAyZDU2NGQ0MzUiLCJuYmYiOjE3MDIzMDMyMDcsImNvZGUiOiJiMUN3NXdWSVFGaXVfdWR3YjRtZ2tnRUNyMmJhSTZLU1EiLCJpc3MiOiJ6bTpjaWQ6Y2duNUN0aHZTX2FXdW5YQ0ZoQk9zZyIsImdubyI6MCwiZXhwIjoxNzAyMzA2ODA3LCJ0eXBlIjozLCJpYXQiOjE3MDIzMDMyMDcsImFpZCI6IlNQc3FveHdqVHBxTy1TTGh0bDMwcncifQ.Ve49nYm4VnyhhYXMkgIE1AfeKCshY_8hdjVQgEXCnUJDL8q3hDT2cqapFkQhqFJ2z0zeyiVd8P2JTgIZd8Wv8w

```

Thanks for your help

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [December 12, 2023, 3:11am UTC](https://devforum.zoom.us/t/error-with-a-newly-generated-token/99931/2 "2023-12-12T03:11:23Z")

</div>

Hi,

Are the subsequent requests failing even after generating a new access token?

---

<div class="post-metadata">

**Author:** ![EVant](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/evant/32/3511_2.png) [@EVant](https://devforum.zoom.us/u/EVant)\
**Post date:** [December 12, 2023, 7:54am UTC](https://devforum.zoom.us/t/error-with-a-newly-generated-token/99931/3 "2023-12-12T07:54:45Z")

</div>

There is no call after a Token error.  
I rerun the generation of a new Token and repeat the operation that failed.

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [December 19, 2023, 4:34pm UTC](https://devforum.zoom.us/t/error-with-a-newly-generated-token/99931/4 "2023-12-19T16:34:31Z")

</div>

@EVant

- can you confirm that the app is still active (not deactivated or deleted) ?
- can you confirm that the user is still part of the same account?

If yes, can you paste the complete error that you receive from Zoom in curl format?

---

<div class="post-metadata">

**Author:** ![EVant](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/evant/32/3511_2.png) [@EVant](https://devforum.zoom.us/u/EVant)\
**Post date:** [December 20, 2023, 7:58am UTC](https://devforum.zoom.us/t/error-with-a-newly-generated-token/99931/5 "2023-12-20T07:58:48Z")

</div>

I confirm a positive answer to both questions.  
The error doesn’t occur consistently and hasn’t reappeared since the post.

---

<div class="post-metadata">

**Author:** ![EVant](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/evant/32/3511_2.png) [@EVant](https://devforum.zoom.us/u/EVant)\
**Post date:** [January 24, 2024, 12:27pm UTC](https://devforum.zoom.us/t/error-with-a-newly-generated-token/99931/7 "2024-01-24T12:27:19Z")

</div>

Thank you for your answer.  
I’ve put in the log all the informations Header, Bearer and call sequence.

This script is so rudimental that I have no margin for errors.

Since my post (1 month) and without any change, it hasn’t occured again. I assume it’s a zoom servers issue

---

<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:** [January 27, 2025, 4:03am UTC](https://devforum.zoom.us/t/error-with-a-newly-generated-token/99931/8 "2025-01-27T04:03:24Z")

</div>

Closed on January 27, 2025, 4:03am UTC

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