# Auth Error while trying to create a meeting using Zoom API after shifting servers

**URL:** <https://devforum.zoom.us/t/auth-error-while-trying-to-create-a-meeting-using-zoom-api-after-shifting-servers/6418>\
**Category:** API and Webhooks\
**Created:** [October 25, 2019, 7:25am UTC](https://devforum.zoom.us/t/auth-error-while-trying-to-create-a-meeting-using-zoom-api-after-shifting-servers/6418 "2019-10-25T07:25:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sneha\_Arya](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@Sneha\_Arya](https://devforum.zoom.us/u/Sneha_Arya)\
**Post date:** [October 25, 2019, 7:25am UTC](https://devforum.zoom.us/t/auth-error-while-trying-to-create-a-meeting-using-zoom-api-after-shifting-servers/6418/1 "2019-10-25T07:25:33Z")

</div>

**Description/Error**

We recently shifted servers from AWS to GoDaddy, keeping the domain and URL structure as is.

We’ve used the Zoom API to create a one-one meeting. However, we’re now getting the following error while requesting for a new access token using the refresh token:

`{"reason":"Invalid request : token created error: Save Access token into Database error","error":"invalid_request"}array(2) { ["reason"]=> string(76) "Invalid request : token created error: Save Access token into Database error" ["error"]=> string(15) "invalid_request" }`

We’ve maintained the same tokens (access and refresh token) as on the previous server. Can someone explain why this error may be occurring, and what one should do in order to resolve it?

**Which Endpoint/s?**  
‘[https://zoom.us/oauth/token](https://zoom.us/oauth/token)’;

**Additional context**  
I’m adding the PHP code that we’re using for the request (that we’re seeing the error after).

```
 //request zoom api for new access_token using refresh token
    $url = 'https://zoom.us/oauth/token';
    $postFields = http_build_query(array(
    'grant_type' => 'refresh_token',
    'client_id' => $clientId,
    'client_secret' => $clientSecret,
    'refresh_token' => $refreshToken
    ));

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));

    curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
    $result = curl_exec($ch);
    //print_r($result); --> ERROR IS PRINTED HERE
```

---

<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:** [October 25, 2019, 10:23pm UTC](https://devforum.zoom.us/t/auth-error-while-trying-to-create-a-meeting-using-zoom-api-after-shifting-servers/6418/2 "2019-10-25T22:23:01Z")

</div>

Hi @Sneha_Arya,

Happy to help.

To investigate further on this issue, can you please provide us with the following:

- Exact timestamps of when this error happened
- Complete request sent to Zoom
- Complete response received from Zoom.

Since there would be sensitive information involved in this, can you please send us a request on [developersupport@zoom.us](mailto:developersupport@zoom.us)?

I will post the solution here once we diagnose and resolve the issue.

Thanks,  
Ojus

---

<div class="post-metadata">

**Author:** ![alayvakil](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alayvakil/32/2150_2.png) [@alayvakil](https://devforum.zoom.us/u/alayvakil)\
**Post date:** [August 20, 2020, 5:31pm UTC](https://devforum.zoom.us/t/auth-error-while-trying-to-create-a-meeting-using-zoom-api-after-shifting-servers/6418/3 "2020-08-20T17:31:03Z")

</div>

What was the resolution on this @ojus.zoom?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 24, 2020, 8:59pm UTC](https://devforum.zoom.us/t/auth-error-while-trying-to-create-a-meeting-using-zoom-api-after-shifting-servers/6418/4 "2020-08-24T20:59:16Z")

</div>

Hey @alayvakil,

Can you create a new topic and fill out the post template so we have enough details to help you? 🙂

Thanks,  
Tommy
