Seems that your API call is being blocked, which causes the program to crash (for me):
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.ipify.org/?format=json. (Reason: CORS request did not succeed).