Skip to content

Instantly share code, notes, and snippets.

@adham90
Created January 21, 2016 01:38
Show Gist options
  • Save adham90/e385b2b5bbd6800e0b9a to your computer and use it in GitHub Desktop.
Save adham90/e385b2b5bbd6800e0b9a to your computer and use it in GitHub Desktop.
NoMethodError in MessagesController#create
undefined method `fetch' for nil:NilClass
Extracted source (around line #37):
#35 # Also makes sure proper dependencies are required.
#36 def pubsub_adapter
*37 adapter = (cable.fetch('adapter') { 'redis' })
#38 path_to_adapter = "action_cable/subscription_adapter/#{adapter}"
#39 begin
#40 require path_to_adapter
Extracted source (around line #50):
#48 # Adapter used for all streams/broadcasting.
#49 def pubsub
*50 @pubsub ||= config.pubsub_adapter.new(self)
#51 end
#52
#53 # All the identifiers applied to the connection class associated with this server.
Extracted source (around line #42):
#40 def broadcast(message)
#41 server.logger.info "[ActionCable] Broadcasting to #{broadcasting}: #{message}"
*42 server.pubsub.broadcast broadcasting, ActiveSupport::JSON.encode(message)
#43 end
#44 end
#45 end
Rails.root: /media/adham/Data/code/rails5test
Application Trace
app/controllers/messages_controller.rb:6:in `create'
app/middleware/chat_action_cable.rb:10:in `call'
Framework Trace
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actioncable/lib/action_cable/server/configuration.rb:37:in `pubsub_adapter'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actioncable/lib/action_cable/server/base.rb:50:in `pubsub'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actioncable/lib/action_cable/server/broadcasting.rb:42:in `broadcast'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actioncable/lib/action_cable/server/broadcasting.rb:23:in `broadcast'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/abstract_controller/base.rb:183:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal/rendering.rb:30:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:126:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:126:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:455:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:455:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/abstract_controller/callbacks.rb:19:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal/rescue.rb:27:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/notifications.rb:164:in `block in instrument'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/notifications.rb:164:in `instrument'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/abstract_controller/base.rb:128:in `process'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionview/lib/action_view/rendering.rb:30:in `process'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal.rb:192:in `dispatch'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal.rb:264:in `dispatch'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/journey/router.rb:42:in `block in serve'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/journey/router.rb:29:in `each'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/journey/router.rb:29:in `serve'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/routing/route_set.rb:724:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionview/lib/action_view/digestor.rb:14:in `call'
rack (2.0.0.alpha) lib/rack/etag.rb:25:in `call'
rack (2.0.0.alpha) lib/rack/conditional_get.rb:38:in `call'
rack (2.0.0.alpha) lib/rack/head.rb:12:in `call'
rack (2.0.0.alpha) lib/rack/session/abstract/id.rb:220:in `context'
rack (2.0.0.alpha) lib/rack/session/abstract/id.rb:214:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/cookies.rb:608:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activerecord/lib/active_record/query_cache.rb:36:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:963:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activerecord/lib/active_record/migration.rb:558:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/reloader.rb:71:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/web-console-c22e5507a4f3/lib/web_console/middleware.rb:132:in `call_app'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/web-console-c22e5507a4f3/lib/web_console/middleware.rb:28:in `block in call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/web-console-c22e5507a4f3/lib/web_console/middleware.rb:18:in `catch'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/web-console-c22e5507a4f3/lib/web_console/middleware.rb:18:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/railties/lib/rails/rack/logger.rb:42:in `call_app'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/railties/lib/rails/rack/logger.rb:24:in `block in call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/tagged_logging.rb:70:in `block in tagged'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/tagged_logging.rb:26:in `tagged'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/tagged_logging.rb:70:in `tagged'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/railties/lib/rails/rack/logger.rb:24:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/request_id.rb:24:in `call'
rack (2.0.0.alpha) lib/rack/method_override.rb:22:in `call'
rack (2.0.0.alpha) lib/rack/runtime.rb:22:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/load_interlock.rb:13:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/static.rb:136:in `call'
rack (2.0.0.alpha) lib/rack/sendfile.rb:111:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/railties/lib/rails/engine.rb:522:in `call'
puma (2.15.3) lib/puma/server.rb:541:in `handle_request'
puma (2.15.3) lib/puma/server.rb:388:in `process_client'
puma (2.15.3) lib/puma/server.rb:270:in `block in run'
puma (2.15.3) lib/puma/thread_pool.rb:106:in `call'
puma (2.15.3) lib/puma/thread_pool.rb:106:in `block in spawn_thread'
Full Trace
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actioncable/lib/action_cable/server/configuration.rb:37:in `pubsub_adapter'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actioncable/lib/action_cable/server/base.rb:50:in `pubsub'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actioncable/lib/action_cable/server/broadcasting.rb:42:in `broadcast'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actioncable/lib/action_cable/server/broadcasting.rb:23:in `broadcast'
app/controllers/messages_controller.rb:6:in `create'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/abstract_controller/base.rb:183:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal/rendering.rb:30:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:126:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:126:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:455:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:455:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/abstract_controller/callbacks.rb:19:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal/rescue.rb:27:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/notifications.rb:164:in `block in instrument'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/notifications.rb:164:in `instrument'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/abstract_controller/base.rb:128:in `process'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionview/lib/action_view/rendering.rb:30:in `process'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal.rb:192:in `dispatch'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_controller/metal.rb:264:in `dispatch'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/journey/router.rb:42:in `block in serve'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/journey/router.rb:29:in `each'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/journey/router.rb:29:in `serve'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/routing/route_set.rb:724:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionview/lib/action_view/digestor.rb:14:in `call'
app/middleware/chat_action_cable.rb:10:in `call'
rack (2.0.0.alpha) lib/rack/etag.rb:25:in `call'
rack (2.0.0.alpha) lib/rack/conditional_get.rb:38:in `call'
rack (2.0.0.alpha) lib/rack/head.rb:12:in `call'
rack (2.0.0.alpha) lib/rack/session/abstract/id.rb:220:in `context'
rack (2.0.0.alpha) lib/rack/session/abstract/id.rb:214:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/cookies.rb:608:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activerecord/lib/active_record/query_cache.rb:36:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:963:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activerecord/lib/active_record/migration.rb:558:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/reloader.rb:71:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/web-console-c22e5507a4f3/lib/web_console/middleware.rb:132:in `call_app'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/web-console-c22e5507a4f3/lib/web_console/middleware.rb:28:in `block in call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/web-console-c22e5507a4f3/lib/web_console/middleware.rb:18:in `catch'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/web-console-c22e5507a4f3/lib/web_console/middleware.rb:18:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/railties/lib/rails/rack/logger.rb:42:in `call_app'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/railties/lib/rails/rack/logger.rb:24:in `block in call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/tagged_logging.rb:70:in `block in tagged'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/tagged_logging.rb:26:in `tagged'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/tagged_logging.rb:70:in `tagged'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/railties/lib/rails/rack/logger.rb:24:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/request_id.rb:24:in `call'
rack (2.0.0.alpha) lib/rack/method_override.rb:22:in `call'
rack (2.0.0.alpha) lib/rack/runtime.rb:22:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/load_interlock.rb:13:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/actionpack/lib/action_dispatch/middleware/static.rb:136:in `call'
rack (2.0.0.alpha) lib/rack/sendfile.rb:111:in `call'
/home/adham/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/rails-06397336b2c9/railties/lib/rails/engine.rb:522:in `call'
puma (2.15.3) lib/puma/server.rb:541:in `handle_request'
puma (2.15.3) lib/puma/server.rb:388:in `process_client'
puma (2.15.3) lib/puma/server.rb:270:in `block in run'
puma (2.15.3) lib/puma/thread_pool.rb:106:in `call'
puma (2.15.3) lib/puma/thread_pool.rb:106:in `block in spawn_thread'
Request parameters
{"utf8"=>"✓",
"message"=>{"content"=>"ddd"}}
Session dump
_csrf_token: "jd4qHtBIL4IQ1vgNBWeClxmOh3XcBZJ9uNuAOiZHo6Y="
session_id: "aa3ccd785699715862bed89b3ef5e3e3"
username: "adham"
Env dump
GATEWAY_INTERFACE: "CGI/1.2"
HTTP_ACCEPT: "*/*;q=0.5, text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
HTTP_ACCEPT_ENCODING: "gzip, deflate"
HTTP_ACCEPT_LANGUAGE: "en-US,en;q=0.8"
HTTP_ORIGIN: "http://localhost:3000"
HTTP_VERSION: "HTTP/1.1"
HTTP_X_CSRF_TOKEN: "xVFqYd2Dd2GCd4SPwVKkWLPtuk/6/f5B5ByoieCKYL5Ij0B/DctY45KhfILENSbPqmM9Oib4bDxcxyizxs3DGA=="
ORIGINAL_SCRIPT_NAME: ""
REMOTE_ADDR: "127.0.0.1"
SERVER_NAME: "localhost"
SERVER_PROTOCOL: "HTTP/1.1"
Response headers
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment