v-kolesnikov/svejk

ArgumentError: wrong number of arguments (given 1, expected 2+)

Closed this issue · 0 comments

View details in Rollbar: https://rollbar.com/VKolesnikov/Svejk/items/9/


ArgumentError: wrong number of arguments (given 1, expected 2+)
  File "(eval)", line 2, in __dry_initializer_initialize__
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-initializer-2.3.0/lib/dry/initializer/mixin/root.rb", line 7, in initialize
  File "/Users/vkolesnikov/projects/svejk/apps/main/lib/main/resources/webhooks/list.rb", line 17, in initialize
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-auto_inject-0.4.4/lib/dry/auto_inject/strategies/kwargs.rb", line 17, in new
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-auto_inject-0.4.4/lib/dry/auto_inject/strategies/kwargs.rb", line 17, in block (2 levels) in define_new
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-system-0.8.1/lib/dry/system/loader.rb", line 48, in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-system-0.8.1/lib/dry/system/component.rb", line 108, in instance
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-system-0.8.1/lib/dry/system/auto_registrar/configuration.rb", line 13, in block in <class:Configuration>
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-system-0.8.1/lib/dry/system/auto_registrar.rb", line 38, in block (3 levels) in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-container-0.6.0/lib/dry/container/item.rb", line 29, in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-container-0.6.0/lib/dry/container/resolver.rb", line 25, in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-container-0.6.0/lib/dry/container/mixin.rb", line 112, in resolve
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-system-0.8.1/lib/dry/system/container.rb", line 482, in resolve
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-container-0.6.0/lib/dry/container/mixin.rb", line 125, in []
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-web-roda-0.7.5/lib/dry/web/roda/application.rb", line 25, in resolve
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-flow-0.3.1/lib/roda/plugins/flow.rb", line 6, in block in resolve
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-flow-0.3.1/lib/roda/plugins/flow.rb", line 6, in map
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-flow-0.3.1/lib/roda/plugins/flow.rb", line 6, in resolve
  File "/Users/vkolesnikov/projects/svejk/apps/main/web/routes/webhooks.rb", line 8, in block (3 levels) in <class:Application>
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 827, in always
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-flow-0.3.1/lib/roda/plugins/flow.rb", line 38, in always
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 818, in _verb
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 416, in get
  File "/Users/vkolesnikov/projects/svejk/apps/main/web/routes/webhooks.rb", line 7, in block (2 levels) in <class:Application>
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 827, in always
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-flow-0.3.1/lib/roda/plugins/flow.rb", line 38, in always
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 488, in is
  File "/Users/vkolesnikov/projects/svejk/apps/main/web/routes/webhooks.rb", line 6, in block in <class:Application>
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda/plugins/multi_route.rb", line 213, in instance_exec
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda/plugins/multi_route.rb", line 213, in route
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda/plugins/multi_route.rb", line 202, in block in multi_route
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-flow-0.3.1/lib/roda/plugins/flow.rb", line 31, in if_match
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 534, in on
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda/plugins/multi_route.rb", line 201, in multi_route
  File "/Users/vkolesnikov/projects/svejk/apps/main/system/main/application.rb", line 27, in block in <class:Application>
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 279, in instance_exec
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 279, in block in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 277, in catch
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 277, in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda/plugins/error_handler.rb", line 66, in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda/plugins/flash.rb", line 104, in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 246, in block in build_rack_app
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/rack_csrf-2.6.0/lib/rack/csrf.rb", line 38, in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/rack-2.0.3/lib/rack/session/abstract/id.rb", line 232, in context
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/rack-2.0.3/lib/rack/session/abstract/id.rb", line 226, in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/rollbar-2.15.4/lib/rollbar/middleware/rack.rb", line 20, in block in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/rollbar-2.15.4/lib/rollbar.rb", line 145, in scoped
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/rollbar-2.15.4/lib/rollbar/middleware/rack.rb", line 18, in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 688, in run
  File "/Users/vkolesnikov/projects/svejk/system/svejk/application.rb", line 13, in block in <class:Application>
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 279, in instance_exec
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 279, in block in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 277, in catch
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 277, in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda/plugins/error_handler.rb", line 66, in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/roda-2.29.0/lib/roda.rb", line 246, in block in build_rack_app
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-monitor-0.0.3/lib/dry/monitor/rack/middleware.rb", line 36, in block in call
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-monitor-0.0.3/lib/dry/monitor/notifications.rb", line 6, in measure
  File "/Users/vkolesnikov/.rvm/gems/ruby-2.4.0/gems/dry-monitor-0.0.3/lib/dry/monitor/rack/middleware.rb", line 3