Hmm, did you ever resolve this @Jdano23? I'm currently trying to get past this issue with puppet. The weird thing is that on the first puppet run this command will always fail. But having removed the `onlyif` a second run this will always succeed so it doesn't actually seem to be an issue with the endpoint name.
I get exactly the same error message and even after hacking the file to extend the curl timeout I still get this message after a minute. As I say, the second run always succeeds.
Edit: I can see that other posts say that this can be due to a DNS issue where resolution is failing, but I'm finding that even with a hosts entry for localhost this still is an issue for me where it always fails first time and then the second time it will always succeed.