You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Traceback (most recent call last):
File "/Users/user/virt/lib/python3.8/site-packages/flask/app.py", line 2464, in __call__
return self.wsgi_app(environ, start_response)
File "/Users/user/virt/lib/python3.8/site-packages/flask/app.py", line 2450, in wsgi_app
response = self.handle_exception(e)
File "/Users/user/virt/lib/python3.8/site-packages/flask/app.py", line 1867, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/user/virt/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/user/virt/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/Users/user/virt/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/user/virt/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/user/virt/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/user/virt/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/user/virt/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/user/email-header-analyzer/mha/server.py", line 199, in index
return render_template(
File "/Users/user/virt/lib/python3.8/site-packages/flask/templating.py", line 137, in render_template
return _render(
File "/Users/user/virt/lib/python3.8/site-packages/flask/templating.py", line 120, in _render
rv = template.render(context)
File "/Users/user/virt/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/Users/user/virt/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/Users/user/virt/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/Users/user/email-header-analyzer/mha/templates/index.html", line 109, in top-level template code
<td>{{ v.Direction.0 }}{% if country(v.Direction.0).iso_code %}<span class="pull-right"><a href="#"
File "/Users/user/email-header-analyzer/mha/server.py", line 37, in getCountryForIP
r = reader.country(ip).country
File "/Users/user/virt/lib/python3.8/site-packages/geoip2/database.py", line 126, in country
Country, self._model_for(geoip2.models.Country, "Country", ip_address)
File "/Users/user/virt/lib/python3.8/site-packages/geoip2/database.py", line 239, in _model_for
(record, prefix_len) = self._get(types, ip_address)
File "/Users/user/virt/lib/python3.8/site-packages/geoip2/database.py", line 228, in _get
raise geoip2.errors.AddressNotFoundError(
geoip2.errors.AddressNotFoundError: The address x.x.x.x is not in the database.
IP address in question can be provided privately if required. It is a real world routable IP.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: