That’s great to know. So yeah as expected the code is working perfectly fine.
The reason why I believe it might be the domain is because of this thread:
They had an issue where their domain was not resolving, but was connected to Netlify website. This is not the case for you, but that’s the closest thing I can think of at the moment.