Snorby/snorby — Issue #154: Geoip error
Author: jbc22
Created: 2011-10-26 12:14:07+00:00
State: open

From Rufi on snorby mailing list:

Hi,

When I click on Events or try to click on a graph to get more details - I get the following error:

ActionView::Template::Error (can't convert File into String):
21:

22: <% if Setting.geoip? && event.ip.present? %>
23:
24: <% geoip_src = event.ip.geoip[:source] %>
25:
26: <%= geoip_src[:country_code2] %>
27:
lib/snorby/geoip.rb:34:in `new'
lib/snorby/geoip.rb:34:in `lookup'
app/models/ip.rb:60:in `geoip'
app/views/events/_event.html.erb:24:in `_app_views_events__event_html_erb__614632626_67474380_1392748'
app/views/page/_events.html.erb:48:in `_app_views_page__events_html_erb__2081431922_66349960_2965150'
app/views/page/_events.html.erb:3:in `_app_views_page__events_html_erb__2081431922_66349960_2965150'
app/views/page/results.html.erb:17:in `_app_views_page_results_html_erb__1423896628_66443500_0'

On the page, it says "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly."

Anyone else experiencing this issue or know a fix ?

Thanks