I see one has to make sure that the DNS is resolved properly from the machine, check out the node documentation to make sure that domain
The problem can also happen if you have a trailing slash:
Good: "www.google.com"
"www.google.com"
Bad: "www.google.com/"
"www.google.com/"