To monitor the club's correspondence games, I use a script written in Google Apps Script (GAS), which includes three api requests to the following addresses:
https://lichess.org/api/team/teams-russia-correspondence-swiss-tournaments/users
https://lichess.org/api/users
https://lichess.org/api/games/export/_ids?moves=false
Starting from some point in time, approximately on February 13, the number of errors increased dramatically during the script, up to 80-100% of the number of runs, regardless of whether the script was run manually or on schedule. The error is: "Exception: Address unavailable:https:// url". After that, I can't even get the Response Code of request. And very rarely the script gets a response and works correctly.
At the same time, if I run the same query from my computer using curl, I get the required response.
I assume that the problem is related to the execution of requests coming from Google servers. What can you recommend to remedy the situation?
#Problems with fetching over API using GAS
8 messages · Page 1 of 1 (latest)
can you provide one or several IP addresses so I can dig the server logs?
curl ifconfig.me from GAS
Apparently, the analog of this command is UrlFetchApp.fetch(url, params). When I run UrlFetchApp.fetch("https://ifconfig.me/") I got html-code of this page.
There are IP-adresses on it: 107.178.224.192 (whois gave 192.224.178.107.gae.googleusercontent.com), 109.174.76.143 (I think it is my address), 34.160.111.145 (145.111.160.34.bc.googleusercontent.com). Is that what you need?
I find a topic "Obtain Google IP address ranges" - https://support.google.com/a/answer/10026322
The default domain IP ranges used by Google APIs and services are allocated dynamically and change often. To get an accurate list, refer to these two lists that Google publishes and updates frequently
I checked these 2 google IPs and they're not banned by our server
do you log or monitor the ratelimited responses (429) that lichess sends you back
No, I can't get any response code when an error "Exception: Address unavailable:https:// url" occurs .