messenger_platform_rails 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +37 -0
  4. data/app/controllers/messenger_platform/webhook_controller.rb +34 -0
  5. data/config/routes.rb +6 -0
  6. data/lib/messenger_platform/contact.rb +9 -0
  7. data/lib/messenger_platform/engine.rb +16 -0
  8. data/lib/messenger_platform/inbound_message.rb +23 -0
  9. data/lib/messenger_platform/subscriber.rb +21 -0
  10. data/lib/messenger_platform/version.rb +3 -0
  11. data/lib/messenger_platform.rb +4 -0
  12. data/lib/tasks/messenger_platform_tasks.rake +13 -0
  13. data/test/controllers/messenger_platform/webhook_controller_test.rb +13 -0
  14. data/test/dummy/README.rdoc +28 -0
  15. data/test/dummy/Rakefile +6 -0
  16. data/test/dummy/app/assets/javascripts/application.js +13 -0
  17. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  18. data/test/dummy/app/controllers/application_controller.rb +5 -0
  19. data/test/dummy/app/helpers/application_helper.rb +2 -0
  20. data/test/dummy/app/models/message_processor.rb +13 -0
  21. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  22. data/test/dummy/bin/bundle +3 -0
  23. data/test/dummy/bin/rails +4 -0
  24. data/test/dummy/bin/rake +4 -0
  25. data/test/dummy/bin/setup +29 -0
  26. data/test/dummy/config/application.rb +26 -0
  27. data/test/dummy/config/boot.rb +5 -0
  28. data/test/dummy/config/database.yml +25 -0
  29. data/test/dummy/config/environment.rb +5 -0
  30. data/test/dummy/config/environments/development.rb +41 -0
  31. data/test/dummy/config/environments/production.rb +79 -0
  32. data/test/dummy/config/environments/test.rb +42 -0
  33. data/test/dummy/config/initializers/assets.rb +11 -0
  34. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  35. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  36. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  37. data/test/dummy/config/initializers/inflections.rb +16 -0
  38. data/test/dummy/config/initializers/messenger_platform.rb +6 -0
  39. data/test/dummy/config/initializers/mime_types.rb +4 -0
  40. data/test/dummy/config/initializers/session_store.rb +3 -0
  41. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  42. data/test/dummy/config/locales/en.yml +23 -0
  43. data/test/dummy/config/routes.rb +5 -0
  44. data/test/dummy/config/secrets.yml +22 -0
  45. data/test/dummy/config.ru +4 -0
  46. data/test/dummy/db/development.sqlite3 +0 -0
  47. data/test/dummy/log/development.log +788 -0
  48. data/test/dummy/public/404.html +67 -0
  49. data/test/dummy/public/422.html +67 -0
  50. data/test/dummy/public/500.html +66 -0
  51. data/test/dummy/public/favicon.ico +0 -0
  52. data/test/integration/navigation_test.rb +8 -0
  53. data/test/messenger_platform_test.rb +7 -0
  54. data/test/test_helper.rb +20 -0
  55. metadata +167 -0
@@ -0,0 +1,788 @@
1
+
2
+
3
+ Started GET "/" for ::1 at 2016-04-18 23:17:50 +0100
4
+ Processing by Rails::WelcomeController#index as HTML
5
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.8ms)
6
+ Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.0ms)
7
+
8
+
9
+ Started GET "/ads" for ::1 at 2016-04-18 23:17:54 +0100
10
+
11
+ ActionController::RoutingError (No route matches [GET] "/ads"):
12
+ actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
13
+ actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
14
+ railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
15
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
16
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
17
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
18
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
19
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
20
+ actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
21
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
22
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
23
+ activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
24
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
25
+ actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
26
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
27
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
28
+ railties (4.2.6) lib/rails/application.rb:165:in `call'
29
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
30
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
31
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
32
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
33
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
34
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
35
+
36
+
37
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms)
38
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (8.4ms)
39
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (8.8ms)
40
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (60.7ms)
41
+
42
+
43
+ Started GET "/ads" for ::1 at 2016-04-18 23:19:02 +0100
44
+
45
+ ActionController::RoutingError (No route matches [GET] "/ads"):
46
+ actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
47
+ actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
48
+ railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
49
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
50
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
51
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
52
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
53
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
54
+ actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
55
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
56
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
57
+ activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
58
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
59
+ actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
60
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
61
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
62
+ railties (4.2.6) lib/rails/application.rb:165:in `call'
63
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
64
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
65
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
66
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
67
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
68
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
69
+
70
+
71
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms)
72
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
73
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.1ms)
74
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (8.4ms)
75
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (8.6ms)
76
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (83.1ms)
77
+
78
+
79
+ Started GET "/hookie" for ::1 at 2016-04-18 23:19:06 +0100
80
+
81
+ ActionController::RoutingError (No route matches [GET] "/hookie"):
82
+ actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
83
+ actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
84
+ railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
85
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
86
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
87
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
88
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
89
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
90
+ actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
91
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
92
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
93
+ activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
94
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
95
+ actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
96
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
97
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
98
+ railties (4.2.6) lib/rails/application.rb:165:in `call'
99
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
100
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
101
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
102
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
103
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
104
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
105
+
106
+
107
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms)
108
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
109
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.1ms)
110
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms)
111
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
112
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (57.5ms)
113
+
114
+
115
+ Started GET "/hookie_hook" for ::1 at 2016-04-18 23:19:07 +0100
116
+ Processing by MessengerPlatform::WebhookController#subscribe as HTML
117
+ Rendered text template (0.0ms)
118
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
119
+
120
+
121
+ Started GET "/hookie_hook" for ::1 at 2016-04-18 23:20:47 +0100
122
+ Processing by MessengerPlatform::WebhookController#subscribe as HTML
123
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
124
+
125
+
126
+ Started GET "/hookie_hook?hub.verify_token=TEST_VERIFY_TOKEN" for ::1 at 2016-04-18 23:21:07 +0100
127
+ Processing by MessengerPlatform::WebhookController#subscribe as HTML
128
+ Parameters: {"hub.verify_token"=>"TEST_VERIFY_TOKEN"}
129
+ Rendered text template (0.0ms)
130
+ Completed 200 OK in 10ms (Views: 10.3ms | ActiveRecord: 0.0ms)
131
+
132
+
133
+ Started GET "/hookie_hook?hub.verify_token=TEST_VERIFdY_TOKEN" for ::1 at 2016-04-18 23:21:12 +0100
134
+ Processing by MessengerPlatform::WebhookController#subscribe as HTML
135
+ Parameters: {"hub.verify_token"=>"TEST_VERIFdY_TOKEN"}
136
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
137
+
138
+
139
+ Started GET "/hookie_hook?hub.verify_token=TEST_VERIadsasd_TOKEN" for ::1 at 2016-04-18 23:21:15 +0100
140
+ Processing by MessengerPlatform::WebhookController#subscribe as HTML
141
+ Parameters: {"hub.verify_token"=>"TEST_VERIadsasd_TOKEN"}
142
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
143
+
144
+
145
+ Started GET "/hookie_hook?hub.verify_token=TEST_VERIadsasd_TOKEN" for ::1 at 2016-04-18 23:21:22 +0100
146
+ Processing by MessengerPlatform::WebhookController#subscribe as HTML
147
+ Parameters: {"hub.verify_token"=>"TEST_VERIadsasd_TOKEN"}
148
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
149
+
150
+
151
+ Started GET "/hookie_hook?hub.verify_token=TEST_VERIFY_TOKEN" for ::1 at 2016-04-18 23:21:29 +0100
152
+ Processing by MessengerPlatform::WebhookController#subscribe as HTML
153
+ Parameters: {"hub.verify_token"=>"TEST_VERIFY_TOKEN"}
154
+ Rendered text template (0.0ms)
155
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
156
+
157
+
158
+ Started GET "/" for ::1 at 2016-04-19 21:01:14 +0100
159
+ Processing by Rails::WelcomeController#index as HTML
160
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.9ms)
161
+ Completed 200 OK in 18ms (Views: 17.7ms | ActiveRecord: 0.0ms)
162
+
163
+
164
+ Started GET "/hookie" for ::1 at 2016-04-19 21:01:19 +0100
165
+
166
+ ActionController::RoutingError (No route matches [GET] "/hookie"):
167
+ actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
168
+ actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
169
+ railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
170
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
171
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
172
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
173
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
174
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
175
+ actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
176
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
177
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
178
+ activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
179
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
180
+ actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
181
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
182
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
183
+ railties (4.2.6) lib/rails/application.rb:165:in `call'
184
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
185
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
186
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
187
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
188
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
189
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
190
+
191
+
192
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms)
193
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
194
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.1ms)
195
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (15.1ms)
196
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (8.7ms)
197
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (109.3ms)
198
+
199
+
200
+ Started GET "/hookie_hook" for ::1 at 2016-04-19 21:01:23 +0100
201
+ Processing by MessengerPlatform::WebhookController#subscribe as HTML
202
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
203
+
204
+
205
+ Started GET "/hookie?hub.verify_token=tester22" for ::1 at 2016-04-19 21:03:11 +0100
206
+
207
+ ActionController::RoutingError (No route matches [GET] "/hookie"):
208
+ actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
209
+ actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
210
+ railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
211
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
212
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
213
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
214
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
215
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
216
+ actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
217
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
218
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
219
+ activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
220
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
221
+ actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
222
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
223
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
224
+ railties (4.2.6) lib/rails/application.rb:165:in `call'
225
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
226
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
227
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
228
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
229
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
230
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
231
+
232
+
233
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms)
234
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
235
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.1ms)
236
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.5ms)
237
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
238
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (62.8ms)
239
+
240
+
241
+ Started GET "/hookie_hook?hub.verify_token=tester22" for ::1 at 2016-04-19 21:03:21 +0100
242
+ Processing by MessengerPlatform::WebhookController#subscribe as */*
243
+ Parameters: {"hub.verify_token"=>"tester22"}
244
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
245
+
246
+
247
+ Started GET "/hookie_hook" for ::1 at 2016-04-19 21:03:28 +0100
248
+ Processing by MessengerPlatform::WebhookController#subscribe as */*
249
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
250
+
251
+
252
+ Started GET "/" for ::1 at 2016-04-20 22:05:55 +0100
253
+ Processing by Rails::WelcomeController#index as HTML
254
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (2.4ms)
255
+ Completed 200 OK in 18ms (Views: 18.3ms | ActiveRecord: 0.0ms)
256
+
257
+
258
+ Started POST "/hookie_hook" for ::1 at 2016-04-20 22:26:16 +0100
259
+ Processing by MessengerPlatform::WebhookController#message as */*
260
+ Parameters: {"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}], "webhook"=>{"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}]}}
261
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
262
+
263
+ NoMethodError (undefined method `pry' for #<Binding:0x007f92535b28a8>):
264
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:26:in `process_message'
265
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:14:in `block (2 levels) in message'
266
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:13:in `each'
267
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:13:in `block in message'
268
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:12:in `each'
269
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:12:in `message'
270
+ actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
271
+ actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action'
272
+ actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action'
273
+ actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
274
+ activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
275
+ activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
276
+ activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'
277
+ actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
278
+ actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action'
279
+ actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
280
+ activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument'
281
+ activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
282
+ activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument'
283
+ actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
284
+ actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
285
+ activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
286
+ actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process'
287
+ actionview (4.2.6) lib/action_view/rendering.rb:30:in `process'
288
+ actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch'
289
+ actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
290
+ actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action'
291
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call'
292
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
293
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve'
294
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve'
295
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each'
296
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve'
297
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817:in `call'
298
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
299
+ railties (4.2.6) lib/rails/railtie.rb:194:in `public_send'
300
+ railties (4.2.6) lib/rails/railtie.rb:194:in `method_missing'
301
+ actionpack (4.2.6) lib/action_dispatch/routing/mapper.rb:51:in `serve'
302
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve'
303
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each'
304
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve'
305
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817:in `call'
306
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
307
+ rack (1.6.4) lib/rack/conditionalget.rb:38:in `call'
308
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
309
+ actionpack (4.2.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
310
+ actionpack (4.2.6) lib/action_dispatch/middleware/flash.rb:260:in `call'
311
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
312
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
313
+ actionpack (4.2.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'
314
+ activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call'
315
+ activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
316
+ activerecord (4.2.6) lib/active_record/migration.rb:377:in `call'
317
+ actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
318
+ activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
319
+ activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
320
+ activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'
321
+ actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
322
+ actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
323
+ actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
324
+ actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
325
+ actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
326
+ railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
327
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
328
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
329
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
330
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
331
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
332
+ actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
333
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
334
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
335
+ activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
336
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
337
+ actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
338
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
339
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
340
+ railties (4.2.6) lib/rails/application.rb:165:in `call'
341
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
342
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
343
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
344
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
345
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
346
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
347
+
348
+
349
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.3ms)
350
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
351
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (9.2ms)
352
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (56.4ms)
353
+
354
+
355
+ Started POST "/hookie_hook" for ::1 at 2016-04-20 22:27:24 +0100
356
+ Processing by MessengerPlatform::WebhookController#message as */*
357
+ Parameters: {"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}], "webhook"=>{"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}]}}
358
+ Completed in 114664ms (ActiveRecord: 0.0ms)
359
+
360
+
361
+ Started POST "/hookie_hook" for ::1 at 2016-04-20 22:33:44 +0100
362
+ Processing by MessengerPlatform::WebhookController#message as */*
363
+ Parameters: {"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}], "webhook"=>{"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}]}}
364
+ Completed 200 OK in 710651ms (ActiveRecord: 0.0ms)
365
+
366
+
367
+ Started POST "/hookie_hook" for ::1 at 2016-04-20 22:45:43 +0100
368
+ Processing by MessengerPlatform::WebhookController#message as */*
369
+ Parameters: {"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}], "webhook"=>{"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}]}}
370
+ Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
371
+
372
+ NoMethodError (undefined method `new' for nil:NilClass):
373
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:27:in `process_message'
374
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:14:in `block (2 levels) in message'
375
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:13:in `each'
376
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:13:in `block in message'
377
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:12:in `each'
378
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:12:in `message'
379
+ actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
380
+ actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action'
381
+ actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action'
382
+ actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
383
+ activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
384
+ activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
385
+ activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'
386
+ actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
387
+ actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action'
388
+ actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
389
+ activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument'
390
+ activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
391
+ activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument'
392
+ actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
393
+ actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
394
+ activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
395
+ actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process'
396
+ actionview (4.2.6) lib/action_view/rendering.rb:30:in `process'
397
+ actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch'
398
+ actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
399
+ actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action'
400
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call'
401
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
402
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve'
403
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve'
404
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each'
405
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve'
406
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817:in `call'
407
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
408
+ railties (4.2.6) lib/rails/railtie.rb:194:in `public_send'
409
+ railties (4.2.6) lib/rails/railtie.rb:194:in `method_missing'
410
+ actionpack (4.2.6) lib/action_dispatch/routing/mapper.rb:51:in `serve'
411
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve'
412
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each'
413
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve'
414
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817:in `call'
415
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
416
+ rack (1.6.4) lib/rack/conditionalget.rb:38:in `call'
417
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
418
+ actionpack (4.2.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
419
+ actionpack (4.2.6) lib/action_dispatch/middleware/flash.rb:260:in `call'
420
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
421
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
422
+ actionpack (4.2.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'
423
+ activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call'
424
+ activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
425
+ activerecord (4.2.6) lib/active_record/migration.rb:377:in `call'
426
+ actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
427
+ activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
428
+ activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
429
+ activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'
430
+ actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
431
+ actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
432
+ actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
433
+ actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
434
+ actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
435
+ railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
436
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
437
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
438
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
439
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
440
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
441
+ actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
442
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
443
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
444
+ activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
445
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
446
+ actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
447
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
448
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
449
+ railties (4.2.6) lib/rails/application.rb:165:in `call'
450
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
451
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
452
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
453
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
454
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
455
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
456
+
457
+
458
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (9.4ms)
459
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms)
460
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (9.6ms)
461
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (60.0ms)
462
+
463
+
464
+ Started POST "/hookie_hook" for ::1 at 2016-04-20 22:47:17 +0100
465
+ Processing by MessengerPlatform::WebhookController#message as */*
466
+ Parameters: {"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}], "webhook"=>{"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}]}}
467
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
468
+
469
+
470
+ Started POST "/hookie_hook" for ::1 at 2016-04-20 22:48:11 +0100
471
+ Processing by MessengerPlatform::WebhookController#message as */*
472
+ Parameters: {"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}], "webhook"=>{"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}]}}
473
+ Completed 200 OK in 96237ms (ActiveRecord: 0.0ms)
474
+
475
+
476
+ Started POST "/hookie_hook" for ::1 at 2016-04-20 22:49:51 +0100
477
+ Processing by MessengerPlatform::WebhookController#message as */*
478
+ Parameters: {"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}], "webhook"=>{"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}]}}
479
+ Completed 200 OK in 3444ms (ActiveRecord: 0.0ms)
480
+
481
+
482
+ Started POST "/hookie_hook" for ::1 at 2016-04-20 22:50:16 +0100
483
+ Processing by MessengerPlatform::WebhookController#message as */*
484
+ Parameters: {"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}], "webhook"=>{"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}]}}
485
+ Completed 500 Internal Server Error in 3036ms (ActiveRecord: 0.0ms)
486
+
487
+ NameError (undefined local variable or method `asasddasads' for #<MessengerPlatform::InboundMessage:0x007f8e0ace9a38>):
488
+ /Users/fxn/dev/messenger_platform/lib/messenger_platform/inbound_message.rb:10:in `initialize'
489
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:27:in `new'
490
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:27:in `process_message'
491
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:14:in `block (2 levels) in message'
492
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:13:in `each'
493
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:13:in `block in message'
494
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:12:in `each'
495
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:12:in `message'
496
+ actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
497
+ actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action'
498
+ actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action'
499
+ actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
500
+ activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
501
+ activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
502
+ activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'
503
+ actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
504
+ actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action'
505
+ actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
506
+ activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument'
507
+ activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
508
+ activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument'
509
+ actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
510
+ actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
511
+ activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
512
+ actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process'
513
+ actionview (4.2.6) lib/action_view/rendering.rb:30:in `process'
514
+ actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch'
515
+ actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
516
+ actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action'
517
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call'
518
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
519
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve'
520
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve'
521
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each'
522
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve'
523
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817:in `call'
524
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
525
+ railties (4.2.6) lib/rails/railtie.rb:194:in `public_send'
526
+ railties (4.2.6) lib/rails/railtie.rb:194:in `method_missing'
527
+ actionpack (4.2.6) lib/action_dispatch/routing/mapper.rb:51:in `serve'
528
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve'
529
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each'
530
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve'
531
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817:in `call'
532
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
533
+ rack (1.6.4) lib/rack/conditionalget.rb:38:in `call'
534
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
535
+ actionpack (4.2.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
536
+ actionpack (4.2.6) lib/action_dispatch/middleware/flash.rb:260:in `call'
537
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
538
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
539
+ actionpack (4.2.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'
540
+ activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call'
541
+ activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
542
+ activerecord (4.2.6) lib/active_record/migration.rb:377:in `call'
543
+ actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
544
+ activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
545
+ activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
546
+ activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'
547
+ actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
548
+ actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
549
+ actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
550
+ actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
551
+ actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
552
+ railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
553
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
554
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
555
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
556
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
557
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
558
+ actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
559
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
560
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
561
+ activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
562
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
563
+ actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
564
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
565
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
566
+ railties (4.2.6) lib/rails/application.rb:165:in `call'
567
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
568
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
569
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
570
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
571
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
572
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
573
+
574
+
575
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.8ms)
576
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms)
577
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (11.9ms)
578
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (59.0ms)
579
+
580
+
581
+ Started POST "/hookie_hook" for ::1 at 2016-04-20 22:50:33 +0100
582
+ Processing by MessengerPlatform::WebhookController#message as */*
583
+ Parameters: {"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}], "webhook"=>{"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}]}}
584
+ Completed 500 Internal Server Error in 3072ms (ActiveRecord: 0.0ms)
585
+
586
+ NameError (undefined local variable or method `asasddasads' for #<MessengerPlatform::InboundMessage:0x007f8e09db2448>):
587
+ /Users/fxn/dev/messenger_platform/lib/messenger_platform/inbound_message.rb:10:in `initialize'
588
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:27:in `new'
589
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:27:in `process_message'
590
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:14:in `block (2 levels) in message'
591
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:13:in `each'
592
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:13:in `block in message'
593
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:12:in `each'
594
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:12:in `message'
595
+ actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
596
+ actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action'
597
+ actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action'
598
+ actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
599
+ activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
600
+ activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
601
+ activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'
602
+ actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
603
+ actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action'
604
+ actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
605
+ activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument'
606
+ activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
607
+ activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument'
608
+ actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
609
+ actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
610
+ activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
611
+ actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process'
612
+ actionview (4.2.6) lib/action_view/rendering.rb:30:in `process'
613
+ actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch'
614
+ actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
615
+ actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action'
616
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call'
617
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
618
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve'
619
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve'
620
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each'
621
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve'
622
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817:in `call'
623
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
624
+ railties (4.2.6) lib/rails/railtie.rb:194:in `public_send'
625
+ railties (4.2.6) lib/rails/railtie.rb:194:in `method_missing'
626
+ actionpack (4.2.6) lib/action_dispatch/routing/mapper.rb:51:in `serve'
627
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve'
628
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each'
629
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve'
630
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817:in `call'
631
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
632
+ rack (1.6.4) lib/rack/conditionalget.rb:38:in `call'
633
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
634
+ actionpack (4.2.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
635
+ actionpack (4.2.6) lib/action_dispatch/middleware/flash.rb:260:in `call'
636
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
637
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
638
+ actionpack (4.2.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'
639
+ activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call'
640
+ activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
641
+ activerecord (4.2.6) lib/active_record/migration.rb:377:in `call'
642
+ actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
643
+ activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
644
+ activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
645
+ activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'
646
+ actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
647
+ actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
648
+ actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
649
+ actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
650
+ actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
651
+ railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
652
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
653
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
654
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
655
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
656
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
657
+ actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
658
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
659
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
660
+ activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
661
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
662
+ actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
663
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
664
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
665
+ railties (4.2.6) lib/rails/application.rb:165:in `call'
666
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
667
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
668
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
669
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
670
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
671
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
672
+
673
+
674
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.0ms)
675
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.5ms)
676
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
677
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (45.3ms)
678
+
679
+
680
+ Started POST "/hookie_hook" for ::1 at 2016-04-20 22:51:03 +0100
681
+ Processing by MessengerPlatform::WebhookController#message as */*
682
+ Parameters: {"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}], "webhook"=>{"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}]}}
683
+ Completed 500 Internal Server Error in 276537ms (ActiveRecord: 0.0ms)
684
+
685
+ NameError (uninitialized constant MessengerPlatform::Contact):
686
+ /Users/fxn/dev/messenger_platform/lib/messenger_platform/inbound_message.rb:11:in `initialize'
687
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:26:in `new'
688
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:26:in `process_message'
689
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:14:in `block (2 levels) in message'
690
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:13:in `each'
691
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:13:in `block in message'
692
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:12:in `each'
693
+ /Users/fxn/dev/messenger_platform/app/controllers/messenger_platform/webhook_controller.rb:12:in `message'
694
+ actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
695
+ actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action'
696
+ actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action'
697
+ actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
698
+ activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
699
+ activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
700
+ activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'
701
+ actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
702
+ actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action'
703
+ actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
704
+ activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument'
705
+ activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
706
+ activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument'
707
+ actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
708
+ actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
709
+ activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
710
+ actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process'
711
+ actionview (4.2.6) lib/action_view/rendering.rb:30:in `process'
712
+ actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch'
713
+ actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
714
+ actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action'
715
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call'
716
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
717
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve'
718
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve'
719
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each'
720
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve'
721
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817:in `call'
722
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
723
+ railties (4.2.6) lib/rails/railtie.rb:194:in `public_send'
724
+ railties (4.2.6) lib/rails/railtie.rb:194:in `method_missing'
725
+ actionpack (4.2.6) lib/action_dispatch/routing/mapper.rb:51:in `serve'
726
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve'
727
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each'
728
+ actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve'
729
+ actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817:in `call'
730
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
731
+ rack (1.6.4) lib/rack/conditionalget.rb:38:in `call'
732
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
733
+ actionpack (4.2.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
734
+ actionpack (4.2.6) lib/action_dispatch/middleware/flash.rb:260:in `call'
735
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
736
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
737
+ actionpack (4.2.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'
738
+ activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call'
739
+ activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
740
+ activerecord (4.2.6) lib/active_record/migration.rb:377:in `call'
741
+ actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
742
+ activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
743
+ activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
744
+ activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'
745
+ actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
746
+ actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
747
+ actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
748
+ actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
749
+ actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
750
+ railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
751
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
752
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
753
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
754
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
755
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
756
+ actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
757
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
758
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
759
+ activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
760
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
761
+ actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
762
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
763
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
764
+ railties (4.2.6) lib/rails/application.rb:165:in `call'
765
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
766
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
767
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
768
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
769
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
770
+ /Users/fxn/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
771
+
772
+
773
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.0ms)
774
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (6.4ms)
775
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (11.1ms)
776
+ Rendered /Users/fxn/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (62.6ms)
777
+
778
+
779
+ Started POST "/hookie_hook" for ::1 at 2016-04-20 22:56:04 +0100
780
+ Processing by MessengerPlatform::WebhookController#message as */*
781
+ Parameters: {"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}], "webhook"=>{"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}]}}
782
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
783
+
784
+
785
+ Started POST "/hookie_hook" for ::1 at 2016-04-20 22:58:21 +0100
786
+ Processing by MessengerPlatform::WebhookController#message as */*
787
+ Parameters: {"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}], "webhook"=>{"object"=>"page", "entry"=>[{"id"=>123, "time"=>1457764198246, "messaging"=>[{"sender"=>{"id"=>333}, "recipient"=>{"id"=>444}, "timestamp"=>1457764197627, "message"=>{"mid"=>"mid.1457764197618:41d102a3e1ae206a38", "seq"=>73, "text"=>"hello, world!"}}]}]}}
788
+ Completed 200 OK in 24104ms (ActiveRecord: 0.0ms)