# Node Requests Connection Timeout

**URL:** <https://community.auth0.com/t/node-requests-connection-timeout/105941>\
**Category:** Get Help\
**Tags:** other, missing-category\
**Created:** [May 2, 2023, 12:01am UTC](https://community.auth0.com/t/node-requests-connection-timeout/105941 "2023-05-02T00:01:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.dormann](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/michael.dormann/32/34313_2.png) [@michael.dormann](https://community.auth0.com/u/michael.dormann)\
**Post date:** [May 2, 2023, 12:01am UTC](https://community.auth0.com/t/node-requests-connection-timeout/105941/1 "2023-05-02T00:01:59Z")

</div>

Hi, weird issue here. It seems like requests to auth0 made from node backend code always time out. Requests from my browser seem fine, so it doesn’t seem like my IP address as a whole is being blocked. If I connect to a VPN it works again. I turned off all the attack protection settings and that didn’t seem to help. Not sure if it’s my ISP blocking very specific traffic or something on the auth0 side. I changed my DNS to google’s DNS on both my PC and router and that didn’t help either.

Basically,

- https://[my-tenant].us.auth0.com/.well-known/openid-configuration from by browser works (as well as login from my client app)
- The below code ran with node does not work, unless I’m connected to a VPN. I just get Connect Timeout Error

```auto
fetch('https://[my-tenant].us.auth0.com/.well-known/openid-configuration')
    .then(r => console.log(r))
    .catch(e => console.error(e))

```

Any help at all would be much appreciated, thanks!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 4, 2023, 5:19pm UTC](https://community.auth0.com/t/node-requests-connection-timeout/105941/3 "2023-05-04T17:19:36Z")

</div>

Hi @michael.dormann,

Are you able to make requests to other URLs with this script? You could try a different Auth0 endpoint or another service (like `https://google.com`).

Also, can you try access the Auth0 endpoint with a cUrl request?

---

<div class="post-metadata">

**Author:** ![michael.dormann](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/michael.dormann/32/34313_2.png) [@michael.dormann](https://community.auth0.com/u/michael.dormann)\
**Post date:** [May 9, 2023, 1:01am UTC](https://community.auth0.com/t/node-requests-connection-timeout/105941/4 "2023-05-09T01:01:38Z")

</div>

Hi @dan.woda,

Yes, I forgot to mention I tried both of those. Requests to other URLs from the script, like google, worked. Also requests from my terminal with curl also worked. It was just requests to auth0 from node that didn’t work.

Since I made this post the issue fixed itself. I didn’t change anything and it’s been working. I suspect it the issue was with my ISP. We’ll see if it happens again.

Thanks for trying though!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 9, 2023, 12:45pm UTC](https://community.auth0.com/t/node-requests-connection-timeout/105941/5 "2023-05-09T12:45:26Z")

</div>

Great, glad it was resolved. I am going to mark it as such, but please feel free to make a new thread if this issue happens again.

---

<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:** [May 23, 2023, 12:45pm UTC](https://community.auth0.com/t/node-requests-connection-timeout/105941/6 "2023-05-23T12:45:59Z")

</div>

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