Reputation: 1
I have some time ago deployed a JS script in Google Cloud Run capable of doing a small scraping of web pages.
In my workflow I call up the Google Cloud endpoint via an HTTP request in Make.com
Everything was working fine until today when I get this kind of error
textPayload: "Error visiting https://www.my-site.it/: getaddrinfo EAI_AGAIN www.my-site.it"
By searching the web I found some possible solutions such as adding a User-Agent to the code or configuring a public DNS like this
const dns = require("dns"); dns.setServers(["8.8.8.8", "8.8.4.4"]); // Google public DNS
But unfortunately the situation has not been resolved... do you have solutions? Can you tell me why it happens?
The solutions I tried were to add these two strings of code to the code:
const headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36" };
const dns = require("dns"); dns.setServers(["8.8.8.8", "8.8.4.4"]);
Upvotes: 0
Views: 19