Open rowansmithau opened 3 years ago
IMHO this is geoip problem, however if you want to, you can handle the exception within server.py, change the code starting from line 37
r = reader.country(ip).country if r.iso_code and r.name: return { 'iso_code': r.iso_code.lower(), 'country_name': r.name } to
try: r = reader.country(ip).country if r.iso_code and r.name: return { 'iso_code': r.iso_code.lower(), 'country_name': r.name } except: pass
Stood up the latest build using python on localhost and attempting to analyse some headers that contain an IP which seemingly isn't present in the geoip database causes the analysis to outright fail:
IP address in question can be provided privately if required. It is a real world routable IP.