HTTP request - EAI_AGAIN error

No need for that, just tell the PC or Pi or whatever to use a different DNS. You can specify two, so there is a fallback. You can use 1.1.1.1 as the primary (which is Cloudflare's) and 8.8.8.8 as fallback (which is Google's).