Skip to content

Instantly share code, notes, and snippets.

@pH14
Created February 27, 2015 02:28
Show Gist options
  • Save pH14/5e1a6eda9516cc18be19 to your computer and use it in GitHub Desktop.
Save pH14/5e1a6eda9516cc18be19 to your computer and use it in GitHub Desktop.
rbx 2.5.0 rails app psych
=> Booting WEBrick
=> Rails 4.2.0 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[2015-02-26 21:26:57] INFO WEBrick 1.3.1
[2015-02-26 21:26:57] INFO ruby 2.1.0 (2015-01-17) [x86_64-darwin14.1.0]
[2015-02-26 21:26:57] INFO WEBrick::HTTPServer#start: pid=57776 port=3000
Started POST "/session" for 127.0.0.1 at 2015-02-26 21:27:02 -0500
ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
Processing by SessionController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"c8xM/9mFlo8zPzjNsjrkYn1VfV2+4GPf3eRea1zel+hUyBESDC6f716uK5HJkpw0uqJb+J4HJRhTF4qrPDet3g==", "session"=>{"email"=>"pwh@mit.edu", "password"=>"[FILTERED]"}, "login"=>"requested"}
SQL (1.6ms) SELECT DISTINCT "credentials"."id" FROM "credentials" LEFT OUTER JOIN "users" ON "users"."id" = "credentials"."user_id" LEFT OUTER JOIN "credentials" "credentials_users" ON "credentials_users"."user_id" = "users"."id" WHERE "credentials"."type" IN ('Credentials::Email') AND "credentials"."name" = ? ORDER BY "credentials"."id" ASC LIMIT 1 [["name", "pwh@mit.edu"]]
SQL (0.6ms) SELECT "credentials"."id" AS t0_r0, "credentials"."user_id" AS t0_r1, "credentials"."type" AS t0_r2, "credentials"."name" AS t0_r3, "credentials"."updated_at" AS t0_r4, "credentials"."key" AS t0_r5, "users"."id" AS t1_r0, "users"."exuid" AS t1_r1, "users"."created_at" AS t1_r2, "users"."updated_at" AS t1_r3, "credentials_users"."id" AS t2_r0, "credentials_users"."user_id" AS t2_r1, "credentials_users"."type" AS t2_r2, "credentials_users"."name" AS t2_r3, "credentials_users"."updated_at" AS t2_r4, "credentials_users"."key" AS t2_r5 FROM "credentials" LEFT OUTER JOIN "users" ON "users"."id" = "credentials"."user_id" LEFT OUTER JOIN "credentials" "credentials_users" ON "credentials_users"."user_id" = "users"."id" WHERE "credentials"."type" IN ('Credentials::Email') AND "credentials"."name" = ? AND "credentials"."id" IN (1) ORDER BY "credentials"."id" ASC [["name", "pwh@mit.edu"]]
Completed 500 Internal Server Error in 1292ms
TypeError (Tuple cannot be created via allocate()):
kernel/bootstrap/tuple.rb:5:in `allocate'
psych (2.0.13) lib/psych/visitors/to_ruby.rb:371:in `revive'
psych (2.0.13) lib/psych/visitors/to_ruby.rb:207:in `visit_Psych_Nodes_Mapping'
psych (2.0.13) lib/psych/visitors/visitor.rb:15:in `visit'
psych (2.0.13) lib/psych/visitors/visitor.rb:5:in `accept'
psych (2.0.13) lib/psych/visitors/to_ruby.rb:31:in `accept'
psych (2.0.13) lib/psych/visitors/to_ruby.rb:273:in `visit_Psych_Nodes_Mapping'
kernel/common/enumerable.rb:429:in `each_slice'
kernel/bootstrap/array.rb:76:in `each'
kernel/common/enumerable.rb:425:in `each_slice'
psych (2.0.13) lib/psych/visitors/to_ruby.rb:272:in `visit_Psych_Nodes_Mapping'
kernel/common/enumerable.rb:429:in `each_slice'
kernel/bootstrap/array.rb:76:in `each'
kernel/common/enumerable.rb:425:in `each_slice'
psych (2.0.13) lib/psych/visitors/to_ruby.rb:267:in `visit_Psych_Nodes_Mapping'
psych (2.0.13) lib/psych/visitors/visitor.rb:15:in `visit'
psych (2.0.13) lib/psych/visitors/visitor.rb:5:in `accept'
psych (2.0.13) lib/psych/visitors/to_ruby.rb:31:in `accept'
psych (2.0.13) lib/psych/visitors/to_ruby.rb:310:in `visit_Psych_Nodes_Document'
psych (2.0.13) lib/psych/visitors/visitor.rb:15:in `visit'
psych (2.0.13) lib/psych/visitors/visitor.rb:5:in `accept'
psych (2.0.13) lib/psych/visitors/to_ruby.rb:31:in `accept'
psych (2.0.13) lib/psych/nodes/node.rb:37:in `to_ruby'
psych (2.0.13) lib/psych.rb:246:in `load'
activerecord (4.2.0) lib/active_record/coders/yaml_column.rb:26:in `load'
activerecord (4.2.0) lib/active_record/store.rb:190:in `load'
activerecord (4.2.0) lib/active_record/type/serialized.rb:19:in `type_cast_from_database'
activerecord (4.2.0) lib/active_record/type/mutable.rb:5:in `type_cast_from_user'
activerecord (4.2.0) lib/active_record/attribute.rb:100:in `type_cast'
activerecord (4.2.0) lib/active_record/attribute.rb:42:in `original_value'
activerecord (4.2.0) lib/active_record/attribute.rb:37:in `value'
activerecord (4.2.0) lib/active_record/attribute.rb:46:in `value_for_database'
activerecord (4.2.0) lib/active_record/attribute_methods/dirty.rb:164:in `store_original_raw_attribute'
activerecord (4.2.0) lib/active_record/attribute_methods/dirty.rb:93:in `write_attribute'
activerecord (4.2.0) lib/active_record/attribute_methods.rb:50:in `__temp__b65697'
kernel/common/method.rb:199:in `call_on_instance'
kernel/common/delegated_method.rb:18:in `key= (call)'
authpwn_rails (0.17.2) app/models/tokens/base.rb:87:in `random_for'
authpwn_rails (0.17.2) app/models/tokens/session_uid.rb:29:in `random_for'
authpwn_rails (0.17.2) lib/authpwn_rails/session.rb:47:in `set_session_current_user'
authpwn_rails (0.17.2) lib/authpwn_rails/session_controller.rb:64:in `create'
actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.2.0) lib/abstract_controller/base.rb:198:in `process_action'
actionpack (4.2.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.2.0) lib/abstract_controller/callbacks.rb:20:in `process_action'
kernel/bootstrap/proc.rb:20:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:117:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:151:in `halting_and_conditional'
kernel/bootstrap/proc.rb:20:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:234:in `halting'
kernel/bootstrap/proc.rb:20:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in `halting'
kernel/bootstrap/proc.rb:20:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:92:in `_run_callbacks'
activesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_process_action_callbacks'
activesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (4.2.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (4.2.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:31:in `process_action'
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `instrument'
activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.0) lib/active_support/notifications.rb:164:in `instrument'
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.2.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.2.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.2.0) lib/abstract_controller/base.rb:137:in `process'
actionview (4.2.0) lib/action_view/rendering.rb:30:in `process'
actionpack (4.2.0) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.2.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.2.0) lib/action_controller/metal.rb:236:in `action'
kernel/bootstrap/proc.rb:20:in `call'
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:42:in `serve'
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:43:in `serve'
kernel/bootstrap/array.rb:76:in `each'
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in `serve'
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:in `call'
rack (1.6.0) lib/rack/etag.rb:24:in `call'
rack (1.6.0) lib/rack/conditionalget.rb:38:in `call'
rack (1.6.0) lib/rack/head.rb:13:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/flash.rb:260:in `call'
rack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
activerecord (4.2.0) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'
activerecord (4.2.0) lib/active_record/migration.rb:378:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:29:in `call'
kernel/bootstrap/proc.rb:20:in `call'
activesupport (4.2.0) lib/active_support/callbacks.rb:88:in `_run_callbacks'
activesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
activesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.2.0) lib/rails/rack/logger.rb:20:in `call'
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `tagged'
activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.2.0) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
rack (1.6.0) lib/rack/runtime.rb:18:in `call'
activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
rack (1.6.0) lib/rack/lock.rb:17:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in `call'
rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
railties (4.2.0) lib/rails/engine.rb:518:in `call'
railties (4.2.0) lib/rails/application.rb:164:in `call'
rack (1.6.0) lib/rack/lock.rb:17:in `call'
rack (1.6.0) lib/rack/content_length.rb:15:in `call'
rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
rubysl-webrick (2.0.0) lib/webrick/httpserver.rb:138:in `service'
rubysl-webrick (2.0.0) lib/webrick/httpserver.rb:94:in `run'
rubysl-webrick (2.0.0) lib/webrick/server.rb:295:in `start_thread'
kernel/bootstrap/proc.rb:20:in `call'
kernel/bootstrap/thread.rb:396:in `__run__'
Rendered /Users/pwh/.gem/rbx/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (71.4ms)
Rendered /Users/pwh/.gem/rbx/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (33.2ms)
Rendered /Users/pwh/.gem/rbx/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (17.1ms)
Rendered /Users/pwh/.gem/rbx/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (522.1ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment