External calls timing out on node

Hi,

Ah this sounds familiar. Yep, I found the same.

In my case (and the other guy), changing to a different base fixed it e.g

however in our case we were getting ENOTFOUND errors which suggested the DNS wasn’t resolving to an IP.

It can’t hurt to try a full image (not alpine or slim), purely out of interest :thinking:.

But in your case you have ETIMEDOUT and do have an IP (an IPv6) next to that, which suggests to me that your app is able to resolve DNS (else it wouldn’t be able to get that IP). So it looks like a different issue, which may have a different solution …

What about if you call other URLs? Like … https://jsonplaceholder.typicode.com/ ? There is an example using Node calling a demo endpoint https://jsonplaceholder.typicode.com/todos/1 if you scroll down that page to “Try it”.