jarvisteach / appJar

Simple Tkinter GUIs in Python
http://appJar.info
Other
615 stars 68 forks source link

freegeoip.net is shut down #566

Closed wilt00 closed 4 years ago

wilt00 commented 5 years ago

Bug Report


Context


I'm trying to get the Google Maps widget to work (currently shows blank window, separate issue). While stepping through the code, I tried the freegeoip.net/json/ endpoint, and got a message saying that the service has been shut down.

Any error messages produced by appJar


2019-01-30 16:04:10,984 appJar:ERROR [Line 10->14564/setCurrentLocation]: Unable to contact location server, using default: Marlborough, UK

What steps are needed to reproduce the bug


At the command line:

curl -L freegeoip.net/json/

(-L to follow redirect to freegeoip.net/shutdown) Will return the following response:

{
  "0": "#################################################################################################################################",
  "1": "#                                                                                                                               #",
  "2": "# IMPORTANT - PLEASE UPDATE YOUR API ENDPOINT                                                                                   #",
  "3": "#                                                                                                                               #",
  "4": "# This API endpoint is deprecated and has now been shut down. To keep using the freegeoip API, please update your integration   #",
  "5": "# to use the new ipstack API endpoint, designed as a simple drop-in replacement.                                                #",
  "6": "# You will be required to create an account at https://ipstack.com and obtain an API access key.                                #",
  "7": "#                                                                                                                               #",
  "8": "# For more information on how to upgrade please visit our Github Tutorial at: https://github.com/apilayer/freegeoip#readme      #",
  "9": "#                                                                                                                               #",
  "a": "#################################################################################################################################"
}

Version Information


appJar: 0.93.0 Python: 3.7.2 TCL: 8.6, TK: 8.6 Platform: Windows pid: 9080 locale: en_US

wilt00 commented 5 years ago

Swapping out freegeoip.net for ipinfo.io by toggling the comments here and here works fine as a workaround.

jarvisteach commented 5 years ago

Yeah, looks like my lovely GoogleMaps widget has some issues - both providers are not working!

I'll make the changes you suggest, when I add in support for API keys.

jarvisteach commented 4 years ago

Resolved in next_release