[OSM-dev] API threw unexpected NoMethodError exception

Martin Schafran martin at ampelmeter.com
Fri Apr 5 18:55:00 UTC 2013


hi,

can you help, i dont speak ruby.

the request was:
/api/0.6/map?bbox=10.532664,52.2265227,10.5389798,52.2296985
by josm


error in file: app/models/relation.rb

this  error appears after a lot of sqls:


[2013-04-05 20:22:49.563787 #10382] API threw unexpected NoMethodError 
exception: undefined method `visible?' for nil:NilClass
[2013-04-05 20:22:49.563873 #10382] /home/m/workspaces/server/openstreetmap-
website/app/models/relation.rb:146:in `block in to_xml_node'
[2013-04-05 20:22:49.563941 #10382] 
/usr/lib/ruby/gems/1.9.1/gems/activerecord-3.2.12/lib/active_record/associations/collection_proxy.rb:89:in 
`each'
[2013-04-05 20:22:49.564009 #10382] 
/usr/lib/ruby/gems/1.9.1/gems/activerecord-3.2.12/lib/active_record/associations/collection_proxy.rb:89:in 
`method_missing'
[2013-04-05 20:22:49.564073 #10382] /home/m/workspaces/server/openstreetmap-
website/app/models/relation.rb:137:in `to_xml_node'
[2013-04-05 20:22:49.564137 #10382] /home/m/workspaces/server/openstreetmap-
website/app/controllers/api_controller.rb:206:in `block in map'



martin




More information about the dev mailing list