Skip to content

Instantly share code, notes, and snippets.

@scytacki
Created May 22, 2013 14:01
Show Gist options
  • Save scytacki/5627737 to your computer and use it in GitHub Desktop.
Save scytacki/5627737 to your computer and use it in GitHub Desktop.
A TypeError occurred in learner#index:
can't convert Symbol into Integer
lib/reports/detail.rb:122:in `[]'
-------------------------------
Request:
-------------------------------
* URL : http://has.portal.concord.org/report/learner?utf8=%E2%9C%93&runnables%5B%5D=63&start_date=&end_date=&commit=Details+Report
* IP address: 173.48.201.19
* Parameters: {"utf8"=>"✓", "runnables"=>["63"], "start_date"=>"", "end_date"=>"", "commit"=>"Details Report", "method"=>:get, "controller"=>"report/learner", "action"=>"index"}
* Rails root: /web/portal/releases/20130320204949
-------------------------------
Session:
-------------------------------
* session id: nil
* data: {"user_id"=>14, "original_user_id"=>14}
-------------------------------
Environment:
-------------------------------
* DOCUMENT_ROOT : /web/portal/current/public
* HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
* HTTP_ACCEPT_ENCODING : gzip, deflate
* HTTP_ACCEPT_LANGUAGE : en-us
* HTTP_CONNECTION : keep-alive
* HTTP_COOKIE : __utma=217140111.1657649834.1352837625.1368633535.1369183624.26; __utmb=217140111.4.10.1369183624; __utmc=217140111; __utmz=217140111.1355526442.5.3.utmcsr=concord.org|utmccn=(referral)|utmcmd=referral|utmcct=/projects/high-adventure-science; NREUM=s=1369183656936&r=98610&p=61117; _rails_portal_session=594130a2894b1346862dea74392f5a88; __utma=1.198672522.1350645338.1368533231.1369141007.26; __utmc=1; __utmz=1.1369141007.26.7.utmcsr=authoring.staging.concord.org|utmccn=(referral)|utmcmd=referral|utmcct=/activities/17/pages/106; _ga=1.2.198672522.1350645338; SESSc12dc9f3a4088bcc2ad2e24e1dd0079a=gfor28gbq2m5c8r9fso7cvpfe2
* HTTP_DNT : 1
* HTTP_HOST : has.portal.concord.org
* HTTP_REFERER : http://has.portal.concord.org/report/learner
* HTTP_USER_AGENT : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13
* HTTP_X_QUEUE_START : t=1369183857678074
* ORIGINAL_FULLPATH : /report/learner?utf8=%E2%9C%93&runnables%5B%5D=63&start_date=&end_date=&commit=Details+Report
* PASSENGER_CONNECT_PASSWORD : [FILTERED]
* PATH_INFO : /report/learner
* QUERY_STRING : utf8=%E2%9C%93&runnables%5B%5D=63&start_date=&end_date=&commit=Details+Report
* REMOTE_ADDR : 173.48.201.19
* REMOTE_PORT : 57855
* REQUEST_METHOD : GET
* REQUEST_URI : /report/learner?utf8=%E2%9C%93&runnables%5B%5D=63&start_date=&end_date=&commit=Details+Report
* SCRIPT_NAME :
* SCRIPT_URI : http://has.portal.concord.org/report/learner
* SCRIPT_URL : /report/learner
* SERVER_ADDR : 10.169.18.73
* SERVER_ADMIN : [no address given]
* SERVER_NAME : has.portal.concord.org
* SERVER_PORT : 80
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : Apache
* _ : _
* action_controller.instance : learner#index
* action_dispatch.backtrace_cleaner : #<Rails::BacktraceCleaner:0x00000008c6f338>
* action_dispatch.logger : #<ActiveSupport::TaggedLogging:0x00000004238558>
* action_dispatch.parameter_filter : [:password, :password_confirmation, /RAW_POST_DATA/]
* action_dispatch.remote_ip : 173.48.201.19
* action_dispatch.request.content_type :
* action_dispatch.request.formats : [text/html]
* action_dispatch.request.parameters : {"utf8"=>"✓", "runnables"=>["63"], "start_date"=>"", "end_date"=>"", "commit"=>"Details Report", "method"=>:get, "controller"=>"report/learner", "action"=>"index"}
* action_dispatch.request.path_parameters : {:method=>:get, :controller=>"report/learner", :action=>"index"}
* action_dispatch.request.query_parameters : {"utf8"=>"✓", "runnables"=>["63"], "start_date"=>"", "end_date"=>"", "commit"=>"Details Report"}
* action_dispatch.request.request_parameters: {}
* action_dispatch.request_id : 1a722de47b76a9baa42e12b328319958
* action_dispatch.routes : #<ActionDispatch::Routing::RouteSet:0x000000034c6fa0>
* action_dispatch.secret_token : a3e2a51a371bb964a4250c21f8d083f9ddb224d455171dcba55518e74af43366e52e3f239773f90aed0ab6caf6554f051504ce7232599d066150dbabff0f1654
* action_dispatch.show_detailed_exceptions : false
* action_dispatch.show_exceptions : true
* exception_notifier.options : {:sender_address=>"\"Application Error\" <[email protected]>", :exception_recipients=>["\"Admin\" <[email protected]>"], :email_prefix=>"[HAS Exception] ", :sections=>["request", "session", "environment", "backtrace"], :ignore_exceptions=>[ActiveRecord::RecordNotFound, AbstractController::ActionNotFound, ActionController::RoutingError]}
* rack-cache.allow_reload : false
* rack-cache.allow_revalidate : false
* rack-cache.cache_key : Rack::Cache::Key
* rack-cache.default_ttl : 0
* rack-cache.entitystore : rails:/
* rack-cache.ignore_headers : ["Set-Cookie"]
* rack-cache.metastore : rails:/
* rack-cache.private_headers : ["Authorization", "Cookie"]
* rack-cache.storage : #<Rack::Cache::Storage:0x00000005643390>
* rack-cache.use_native_ttl : false
* rack-cache.verbose : false
* rack.errors : #<IO:0x00000000b14310>
* rack.input : #<PhusionPassenger::Utils::RewindableInput:0x0000000cd34828>
* rack.multiprocess : true
* rack.multithread : false
* rack.request.cookie_hash : {"__utma"=>"217140111.1657649834.1352837625.1368633535.1369183624.26", "__utmb"=>"217140111.4.10.1369183624", "__utmc"=>"217140111", "__utmz"=>"217140111.1355526442.5.3.utmcsr=concord.org|utmccn=(referral)|utmcmd=referral|utmcct=/projects/high-adventure-science", "NREUM"=>"s=1369183656936&r=98610&p=61117", "_rails_portal_session"=>"594130a2894b1346862dea74392f5a88", "_ga"=>"1.2.198672522.1350645338", "SESSc12dc9f3a4088bcc2ad2e24e1dd0079a"=>"gfor28gbq2m5c8r9fso7cvpfe2"}
* rack.request.cookie_string : __utma=217140111.1657649834.1352837625.1368633535.1369183624.26; __utmb=217140111.4.10.1369183624; __utmc=217140111; __utmz=217140111.1355526442.5.3.utmcsr=concord.org|utmccn=(referral)|utmcmd=referral|utmcct=/projects/high-adventure-science; NREUM=s=1369183656936&r=98610&p=61117; _rails_portal_session=594130a2894b1346862dea74392f5a88; __utma=1.198672522.1350645338.1368533231.1369141007.26; __utmc=1; __utmz=1.1369141007.26.7.utmcsr=authoring.staging.concord.org|utmccn=(referral)|utmcmd=referral|utmcct=/activities/17/pages/106; _ga=1.2.198672522.1350645338; SESSc12dc9f3a4088bcc2ad2e24e1dd0079a=gfor28gbq2m5c8r9fso7cvpfe2
* rack.request.query_hash : {"utf8"=>"✓", "runnables"=>["63"], "start_date"=>"", "end_date"=>"", "commit"=>"Details Report"}
* rack.request.query_string : utf8=%E2%9C%93&runnables%5B%5D=63&start_date=&end_date=&commit=Details+Report
* rack.run_once : false
* rack.session : {"user_id"=>14, "original_user_id"=>14}
* rack.session.options : {:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false, :secret=>"e11105f6c1e147ee0b48e43002363c4bd933fbfe9754d5603ce36c15e4b8", :id=>"594130a2894b1346862dea74392f5a88"}
* rack.session.record : #<ActiveRecord::SessionStore::Session:0x0000000cda1e50>
* rack.url_scheme : http
* rack.version : [1, 0]
* Process: 8402
* Server : ip-10-169-18-73
-------------------------------
Backtrace:
-------------------------------
lib/reports/detail.rb:122:in `[]'
lib/reports/detail.rb:122:in `block (4 levels) in run_report'
lib/reports/detail.rb:122:in `select'
lib/reports/detail.rb:122:in `block (3 levels) in run_report'
lib/reports/detail.rb:116:in `each'
lib/reports/detail.rb:116:in `block (2 levels) in run_report'
lib/reports/detail.rb:98:in `each'
lib/reports/detail.rb:98:in `block in run_report'
lib/reports/excel.rb:20:in `block in iterate_with_status'
lib/reports/excel.rb:18:in `each'
lib/reports/excel.rb:18:in `iterate_with_status'
lib/reports/detail.rb:97:in `run_report'
app/controllers/report/learner_controller.rb:101:in `setup'
activesupport (3.2.11) lib/active_support/callbacks.rb:495:in `_run__1968672863670833234__process_action__3270562850107669798__callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.11) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.2.11) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.11) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
newrelic_rpm (3.5.3.25) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in `block in process_action'
newrelic_rpm (3.5.3.25) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:268:in `block in perform_action_with_newrelic_trace'
newrelic_rpm (3.5.3.25) lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
newrelic_rpm (3.5.3.25) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:263:in `perform_action_with_newrelic_trace'
newrelic_rpm (3.5.3.25) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in `process_action'
actionpack (3.2.11) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.11) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.11) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.11) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.11) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:36:in `call'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:601:in `call'
exception_notification (2.5.2) lib/exception_notifier.rb:25:in `call'
newrelic_rpm (3.5.3.25) lib/new_relic/rack/error_collector.rb:8:in `call'
newrelic_rpm (3.5.3.25) lib/new_relic/rack/browser_monitoring.rb:12:in `call'
sass (3.2.1) lib/sass/plugin/rack.rb:54:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.4) lib/rack/etag.rb:23:in `call'
rack (1.4.4) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
lib/rack/expand_b64_gzip.rb:35:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.4) lib/rack/session/abstract/id.rb:210:in `context'
rack (1.4.4) lib/rack/session/abstract/id.rb:205:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/cookies.rb:341:in `call'
lib/rack/config_session_cookies.rb:42:in `call'
activerecord (3.2.11) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `_run__3086796516692011394__call__2911097150289100913__callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.4) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.4) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.4) lib/rack/lock.rb:15:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
railties (3.2.11) lib/rails/engine.rb:479:in `call'
railties (3.2.11) lib/rails/application.rb:223:in `call'
railties (3.2.11) lib/rails/railtie/configurable.rb:30:in `method_missing'
passenger (3.0.12) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
passenger (3.0.12) lib/phusion_passenger/utils.rb:479:in `safe_fork'
passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
<internal:prelude>:10:in `synchronize'
passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.12) helper-scripts/passenger-spawn-server:99:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment