# Low response from /oauth/token

**URL:** <https://community.auth0.com/t/low-response-from-oauth-token/95053>\
**Category:** Get Help\
**Tags:** keys, management-api\
**Created:** [November 24, 2022, 1:48am UTC](https://community.auth0.com/t/low-response-from-oauth-token/95053 "2022-11-24T01:48:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kelocoes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kelocoes/32/41484_2.png) [@Kelocoes](https://community.auth0.com/u/Kelocoes)\
**Post date:** [November 24, 2022, 1:48am UTC](https://community.auth0.com/t/low-response-from-oauth-token/95053/1 "2022-11-24T01:48:45Z")

</div>

Hi, I would like to know if there’s some problems with auth0 api or something. Yesterday I had my tokens in less than 3s. Today without changing anything of my code, It takes about 40s to get a token.

This is my code:

```auto
conn = http.client.HTTPSConnection(os.getenv("AUTH0_DOMAIN"))
        payload = "{\"client_id\":\""+ os.getenv('AUTH0_CLIENT_ID')+"\",\"client_secret\":\""+ os.getenv('CLIENT_SECRET')+"\",\"audience\":\"https://"+ os.getenv('AUTH0_DOMAIN')+"/api/v2/\",\"grant_type\":\"client_credentials\"}"

        headers = { 'content-type': "application/json" }

        conn.request("POST", "/oauth/token", payload, headers)

        res = conn.getresponse()
        data = res.read()
        datajson = json.loads(data.decode("utf-8"))

```

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 24, 2022, 10:30am UTC](https://community.auth0.com/t/low-response-from-oauth-token/95053/2 "2022-11-24T10:30:23Z")

</div>

Hey there!

Checking our status page and talking with our engineering teams it seems like there wasn’t anything that could have affected this. Do you still experience this?

---

<div class="post-metadata">

**Author:** ![Kelocoes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kelocoes/32/41484_2.png) [@Kelocoes](https://community.auth0.com/u/Kelocoes)\
**Post date:** [November 24, 2022, 4:15pm UTC](https://community.auth0.com/t/low-response-from-oauth-token/95053/3 "2022-11-24T16:15:47Z")

</div>

Yeah, I’m still getting this long time responses. I’ll try to run the same command on other machine, and with other internet provider, maybe that is related with the issue. ☹  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/e/6ea0f3fd28958907b16ce6ab28788eda0f316121.png)

Maybe its something on the M2M config but I haven’t change anything, but I’m new using auth0 so I maybe did something wrong

---

<div class="post-metadata">

**Author:** ![Kelocoes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kelocoes/32/41484_2.png) [@Kelocoes](https://community.auth0.com/u/Kelocoes)\
**Post date:** [November 24, 2022, 5:14pm UTC](https://community.auth0.com/t/low-response-from-oauth-token/95053/4 "2022-11-24T17:14:55Z")

</div>

I tried to run the code from other machine and internet provider and It actually got the response in less than 3s. Maybe I’ll have to change my provider ☹

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 25, 2022, 10:07am UTC](https://community.auth0.com/t/low-response-from-oauth-token/95053/5 "2022-11-25T10:07:15Z")

</div>

Gotchya so it seems like that can indeed be the core issue here.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 9, 2022, 10:07am UTC](https://community.auth0.com/t/low-response-from-oauth-token/95053/6 "2022-12-09T10:07:37Z")

</div>

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