I am getting occasional errors with a Google Apps Script trying to request a URL and failing with Address unavailable:
. The errors are reported in the Google Log viewer.
However:
- I do not see any errors in application logs.
- I do not even see the requests being made in the application logs.
- If you try to repeat the fetch (run the Google forms script again) it will succeed.
- If I try to fetch the URL myself it works fine.
Questions:
- Is it possible Google itself is having issues fetching URLs? Seems utterly unlikely and almost certainly me, but, I'm curious.
- Should I just do the fetch in a
try catch
block and just retry X times until it succeeds? - I couldn't find docs on what "address unavailable" actually means, does it mean the server cannot be found?
To be clear, most requests are processed fine, just seeing weird periodic issues which go away if you retry.
Open issue in Google
This is actually described in an open issue https://issuetracker.google.com/issues/64235231 and seems to be exactly what I have been experiencing, even down to the month we first saw the issue.