Why is the URL not working with my code, but working with the example provided?

This topic was automatically generated from Slack. You can find the original thread here.

The url is reachable from any browser and also from other services similar to yours. It is just not working while the following basic example provided by you it is just fine:

// To use any npm package on Pipedream, just import it
import axios from "axios"

export default defineComponent({
  async run({ steps, $ }) {
    const { data } = await axios({
      method: "GET",
      url: "https://pokeapi.co/api/v2/pokemon/charizard",
    })
    return data.species
  },
})

That url returns a 401 in a browser for me https://connect-live.hoogwerkservice.nl/User/Makula/Machines/JSON

Yes, but why is timing out in pipedream. If I put the credentials in the browser as params I get the reponse, but cannot get them in pipedream

I tried to pass the params in many ways

All other urls work. It is just that url from my customer in the Netherland… could it be a DNS issue within Pipedream?

Have you contacted the support for this service? It may be blocking some AWS us-east-1 IP addresses.

You can also use an HTTP proxy to send your HTTP requests through a specific IP address if that’s the case:

No, I did not, but I will contact them :+1:

I thought I may solve it right away here :slightly_smiling_face:

you were right. At this point I also guess that you have no servers in EU I might use :thinking_face:

That makes sense. For Teams customers we have a managed HTTP proxy service, but that has a fixed IP address, and I don’t believe it’s in the EU region, I believe it’s in US East 1, which is in the states.

You can spin up a virtual machine in your region install Squid or some HTTP proxy service, then use this tutorial to pass requests through it.

Yes, I will have to ask client

permission anyway, but thanks for the hint. I was banging my head on the wall :smile: