-
Notifications
You must be signed in to change notification settings - Fork 85
Occasional timeout with api.ipify.org #39
Comments
Thanks for providing those other services, I will look into it. |
Hey, @zaanposni! This still seems like an issue, was the exception handled correctly?
|
I am not entirely certain, but I feel like the issue may lie with this line? Only a single dot is outputted? |
Ah, I believe newlines must be stripped!
|
Yeah, I also thought about that. Can you open a new issue, as this is not directly connected to "Occasional timeout with api.ipify.org" |
Oops! A tiny bit too late, I've proposed and tested a fix in PR #43. Would you still like a new issue opened? |
I am not sure what would be best practice. Guess we can live without a new issue 😄. |
* Strip trailing whitespace from IP addresses. This fixes #39, after another bug was introduced by the addition of more ext. IP address sources. * Strip trailing whitespace earlier!
Hey! This doesn't seem to be the most major issue ever but occasionally I seem to get timeout errors from https://api.ipify.org. Perhaps it might be a good idea to use multiple redundant sources to get the machine's public IP address since a single service might one day go down. Some other external IP services include https://ifconfig.io/ or https://ident.me/ or https://ifconfig.me/ or https://icanhazip.com
Ideally if one service fails, the script would handle it and try another provider.
The text was updated successfully, but these errors were encountered: