Re: Strange error with no stack trace
Wow, thanks Magnus. Adding that certainly made the output more interesting: http://pastebin.com/DSMKWK52 As you can see, the ruby version seems to be 1.8. It can be bumped up to 1.9 I believe if this is preferred? drinking.rb line 127 is simply: render :index The plot thickens... Adam ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list
Re: Strange error with no stack trace
My gem file reads thus: gem "activerecord", "3.0.3" gem "camping", "2.1" gem "nokogiri", "1.4.4" gem "rest-open-uri", "1.0.0" gem "sqlite3-ruby", "1.3.2" gem "tilt", "1.2.1" gem "haml", "3.0.25" Will get the ruby version asap. Love the idea of adding the method! Great! On Friday, January 21, 2011, Magnus Holm wrote: > Hm… > > Like Dave mentioned, could you give us the versions you're using? For > both Camping, Rack, Tilt, Haml and Ruby? Also, you could add this > little snippet to "force" a backtrace: > > class NilClass > def to_sym > puts "NilClass#to_sym:" > caller.each do |line| > puts " #{line}" > end > raise > end > end > > Maybe that gives you any clues! > > // Magnus Holm > > > > On Thu, Jan 20, 2011 at 06:14, adam moore wrote: >> Hello there! >> >> Been loving getting stuck in & creating bits & bobs with this >> wonderful little framework. Had a go at making a listing of a bunch of >> opening events which occur in my current city of residence - Tokyo. >> Unfortunately, although the app seemed to be fine running locally (in >> production), once pushed to Heroku I began to see intermittent >> occurrences of: >> >> !! Unexpected error while processing request: undefined method >> `to_sym' for nil:NilClass >> >> just as the app reached rendering the (haml) view. >> >> The problem is, there is no stack trace which is spit out at this >> point - and any puts I have added to the view to check things are ok, >> are never reached. I have a hunch that this may be to do with haml / >> tilt not starting up in time but was wondering if there's a way to >> make production camping apps more "verbose", or if this is needed at >> all. >> >> Thank you all. >> >> >> -- >> =^.^=--- >> ___ >> Camping-list mailing list >> Camping-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > ___ > Camping-list mailing list > Camping-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list -- =^.^=--- ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list
Re: Strange error with no stack trace
Hm… Like Dave mentioned, could you give us the versions you're using? For both Camping, Rack, Tilt, Haml and Ruby? Also, you could add this little snippet to "force" a backtrace: class NilClass def to_sym puts "NilClass#to_sym:" caller.each do |line| puts " #{line}" end raise end end Maybe that gives you any clues! // Magnus Holm On Thu, Jan 20, 2011 at 06:14, adam moore wrote: > Hello there! > > Been loving getting stuck in & creating bits & bobs with this > wonderful little framework. Had a go at making a listing of a bunch of > opening events which occur in my current city of residence - Tokyo. > Unfortunately, although the app seemed to be fine running locally (in > production), once pushed to Heroku I began to see intermittent > occurrences of: > > !! Unexpected error while processing request: undefined method > `to_sym' for nil:NilClass > > just as the app reached rendering the (haml) view. > > The problem is, there is no stack trace which is spit out at this > point - and any puts I have added to the view to check things are ok, > are never reached. I have a hunch that this may be to do with haml / > tilt not starting up in time but was wondering if there's a way to > make production camping apps more "verbose", or if this is needed at > all. > > Thank you all. > > > -- > =^.^=--- > ___ > Camping-list mailing list > Camping-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list
Re: Strange error with no stack trace
What version of ruby is Heroku running? Dave On Thu, Jan 20, 2011 at 12:14 AM, adam moore wrote: > Hello there! > > Been loving getting stuck in & creating bits & bobs with this > wonderful little framework. Had a go at making a listing of a bunch of > opening events which occur in my current city of residence - Tokyo. > Unfortunately, although the app seemed to be fine running locally (in > production), once pushed to Heroku I began to see intermittent > occurrences of: > > !! Unexpected error while processing request: undefined method > `to_sym' for nil:NilClass > > just as the app reached rendering the (haml) view. > > The problem is, there is no stack trace which is spit out at this > point - and any puts I have added to the view to check things are ok, > are never reached. I have a hunch that this may be to do with haml / > tilt not starting up in time but was wondering if there's a way to > make production camping apps more "verbose", or if this is needed at > all. > > Thank you all. > > > -- > =^.^=--- > ___ > Camping-list mailing list > Camping-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- Dave ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list