bfosberry / GameSocial

Socialize your gaming experience
GNU General Public License v2.0
11 stars 0 forks source link

game_events#index (NoMethodError) "undefined method `gsub' for nil:NilClass" #337

Open bfosberry opened 8 years ago

bfosberry commented 8 years ago

NoMethodError occurred in game_events

undefined method `gsub' for nil:NilClass
lib/ical.rb:8:in `block (3 levels) in ical_from_collection'

Request

URLhttp://dev-gamesocial.herokuapp.com/game_events.ics?auth_token=kFpOWHEj1e1455qEZcsqGw&noCache
IP address66.249.89.118
Parameters{"auth_token"=>"kFpOWHEj1e1455qEZcsqGw", "noCache"=>nil, "action"=>"index", "controller"=>"game_events", "format"=>"ics"}
Rails root/app
Timestamp2015-10-19 09:16:12 -0500

Session

session idnil
data#<ActionDispatch::Request::Session:0x7fca6fc7b118 not yet loaded>

Environment

GATEWAY_INTERFACECGI/1.2
HTTP_ACCEPT_ENCODINGgzip,deflate
HTTP_CONNECTIONclose
HTTP_CONNECT_TIME1
HTTP_FROM
HTTP_HOSTdev-gamesocial.herokuapp.com
HTTP_TOTAL_ROUTE_TIME0
HTTP_USER_AGENTGoogle-Calendar-Importer
HTTP_VERSIONHTTP/1.1
HTTP_VIA1.1 vegur
HTTP_X_FORWARDED_FOR66.249.89.118
HTTP_X_FORWARDED_PORT80
HTTP_X_FORWARDED_PROTOhttp
HTTP_X_REQUEST_ID66047b37-795e-4c2b-b632-fb7c30c9d044
HTTP_X_REQUEST_START1445264171959
ORIGINAL_FULLPATH/game_events.ics?auth_token=kFpOWHEj1e1455qEZcsqGw&noCache
ORIGINAL_SCRIPT_NAME
PATH_INFO/game_events.ics
QUERY_STRINGauth_token=kFpOWHEj1e1455qEZcsqGw&noCache
REMOTE_ADDR10.97.162.141
REQUEST_METHODGET
REQUEST_PATH/game_events.ics
REQUEST_URI/game_events.ics?auth_token=kFpOWHEj1e1455qEZcsqGw&noCache
ROUTES_70253716628960_SCRIPT_NAME
SCRIPT_NAME
SERVER_NAMEdev-gamesocial.herokuapp.com
SERVER_PORT80
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREthin 1.6.4 codename Gob Bluth
action_controller.instancegame_events#index
action_dispatch.backtrace_cleaner#<Rails::BacktraceCleaner:0x007fca7019c4f8>
action_dispatch.cookies#<ActionDispatch::Cookies::CookieJar:0x007fca6e3e12d8>
action_dispatch.cookies_serializer
action_dispatch.encrypted_cookie_saltencrypted cookie
action_dispatch.encrypted_signed_cookie_saltsigned encrypted cookie
action_dispatch.http_auth_salthttp authentication
action_dispatch.key_generator#<ActiveSupport::CachingKeyGenerator:0x007fca70197c00>
action_dispatch.logger#<Logger:0x007fca6f8b4110>
action_dispatch.parameter_filter[:password]
action_dispatch.redirect_filter[]
action_dispatch.remote_ip66.249.89.118
action_dispatch.request.content_type
action_dispatch.request.formats[#<Mime::Type:0x007fca6e60e240 @synonyms=[], @symbol=:ics, @string="text/calendar">]
action_dispatch.request.parameters{"auth_token"=>"kFpOWHEj1e1455qEZcsqGw", "noCache"=>nil, "action"=>"index", "controller"=>"game_events", "format"=>"ics"}
action_dispatch.request.path_parameters{:action=>"index", :controller=>"game_events", :format=>"ics"}
action_dispatch.request.query_parameters{"auth_token"=>"kFpOWHEj1e1455qEZcsqGw", "noCache"=>nil}
action_dispatch.request.request_parameters{}
action_dispatch.request.unsigned_session_cookie{}
action_dispatch.request_id66047b37-795e-4c2b-b632-fb7c30c9d044
action_dispatch.routes#<ActionDispatch::Routing::RouteSet:0x007fca6fa5cbc0>
action_dispatch.secret_key_base01c2fcf30be73aa2250d7267fb2d907f1b9cfb47c44c0af798bdf884093f09c6ec1a5dafd7988fdd09f87b1827cc038714dec16299c8c1f318c51269554bd1ac
action_dispatch.secret_token
action_dispatch.show_detailed_exceptionsfalse
action_dispatch.show_exceptionstrue
action_dispatch.signed_cookie_saltsigned cookie
async.callback#<Method: Thin::Connection#post_process>
async.close#<EventMachine::DefaultDeferrable:0x007fca700f8df8>
rack.errors#<IO:0x007fca6c889530>
rack.input#<StringIO:0x007fca700f9f00>
rack.multiprocessfalse
rack.multithreadfalse
rack.request.cookie_hash{}
rack.request.query_hash{"auth_token"=>"kFpOWHEj1e1455qEZcsqGw", "noCache"=>nil}
rack.request.query_stringauth_token=kFpOWHEj1e1455qEZcsqGw&noCache
rack.run_oncefalse
rack.session#<ActionDispatch::Request::Session:0x007fca6fc7b118>
rack.session.options#<ActionDispatch::Request::Session::Options:0x007fca6fc7b078>
rack.url_schemehttp
rack.version[1, 0]
Process3
Server40013e25-33af-4af1-abbc-78ef64a2d92d

Backtrace

lib/ical.rb:8:in `block (3 levels) in ical_from_collection'
lib/ical.rb:6:in `block (2 levels) in ical_from_collection'
lib/ical.rb:5:in `block in ical_from_collection'
lib/ical.rb:4:in `ical_from_collection'
app/controllers/game_events_controller.rb:23:in `block (2 levels) in index'
app/controllers/game_events_controller.rb:19:in `index'


{"runtimeerror":["Oct 19",1,"Oct 20",2,"Oct 21",1,"Oct 22",1,"Oct 23",1]}
bfosberry commented 8 years ago

From the deprecated ical importer, ignoring