If your code is not doing a fresh DNS lookup on the domain, it might be stopping it from working. And that would explain why the URL is working in the browser. The change that happened at the end of January moved the DNS record and IP, but the hostname still resolves.