clicksign-webhooks 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +111 -0
  4. data/Rakefile +22 -0
  5. data/app/controllers/clicksign/webhooks/application_controller.rb +6 -0
  6. data/app/controllers/clicksign/webhooks/events_controller.rb +21 -0
  7. data/config/routes.rb +3 -0
  8. data/lib/clicksign/webhooks.rb +18 -0
  9. data/lib/clicksign/webhooks/engine.rb +7 -0
  10. data/lib/clicksign/webhooks/version.rb +5 -0
  11. data/lib/tasks/clicksign/webhooks_tasks.rake +4 -0
  12. data/spec/requests/event_spec.rb +25 -0
  13. data/spec/spec_helper.rb +29 -0
  14. data/spec/test_app/Rakefile +6 -0
  15. data/spec/test_app/app/controllers/application_controller.rb +2 -0
  16. data/spec/test_app/bin/bundle +3 -0
  17. data/spec/test_app/bin/rails +4 -0
  18. data/spec/test_app/bin/rake +4 -0
  19. data/spec/test_app/bin/setup +36 -0
  20. data/spec/test_app/bin/update +31 -0
  21. data/spec/test_app/bin/yarn +11 -0
  22. data/spec/test_app/config.ru +5 -0
  23. data/spec/test_app/config/application.rb +28 -0
  24. data/spec/test_app/config/boot.rb +5 -0
  25. data/spec/test_app/config/cable.yml +10 -0
  26. data/spec/test_app/config/database.yml +0 -0
  27. data/spec/test_app/config/environment.rb +5 -0
  28. data/spec/test_app/config/environments/development.rb +19 -0
  29. data/spec/test_app/config/environments/production.rb +18 -0
  30. data/spec/test_app/config/environments/test.rb +15 -0
  31. data/spec/test_app/config/initializers/application_controller_renderer.rb +8 -0
  32. data/spec/test_app/config/initializers/assets.rb +14 -0
  33. data/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  34. data/spec/test_app/config/initializers/content_security_policy.rb +25 -0
  35. data/spec/test_app/config/initializers/cookies_serializer.rb +5 -0
  36. data/spec/test_app/config/initializers/filter_parameter_logging.rb +4 -0
  37. data/spec/test_app/config/initializers/inflections.rb +16 -0
  38. data/spec/test_app/config/initializers/mime_types.rb +4 -0
  39. data/spec/test_app/config/initializers/wrap_parameters.rb +14 -0
  40. data/spec/test_app/config/locales/en.yml +33 -0
  41. data/spec/test_app/config/puma.rb +34 -0
  42. data/spec/test_app/config/routes.rb +3 -0
  43. data/spec/test_app/config/spring.rb +6 -0
  44. data/spec/test_app/log/development.log +251 -0
  45. data/spec/test_app/log/production.log +0 -0
  46. data/spec/test_app/log/test.log +52 -0
  47. data/spec/test_app/package.json +5 -0
  48. data/spec/test_app/public/404.html +67 -0
  49. data/spec/test_app/public/422.html +67 -0
  50. data/spec/test_app/public/500.html +66 -0
  51. data/spec/test_app/public/apple-touch-icon-precomposed.png +0 -0
  52. data/spec/test_app/public/apple-touch-icon.png +0 -0
  53. data/spec/test_app/public/favicon.ico +0 -0
  54. metadata +180 -0
@@ -0,0 +1,5 @@
1
+ # Set up gems listed in the Gemfile.
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
3
+
4
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
+ $LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
@@ -0,0 +1,10 @@
1
+ development:
2
+ adapter: async
3
+
4
+ test:
5
+ adapter: async
6
+
7
+ production:
8
+ adapter: redis
9
+ url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
+ channel_prefix: test_app_production
File without changes
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require_relative 'application'
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,19 @@
1
+ Rails.application.configure do
2
+ config.cache_classes = false
3
+ config.eager_load = false
4
+ config.consider_all_requests_local = true
5
+ if Rails.root.join('tmp', 'caching-dev.txt').exist?
6
+ config.action_controller.perform_caching = true
7
+
8
+ config.cache_store = :memory_store
9
+ config.public_file_server.headers = {
10
+ 'Cache-Control' => "public, max-age=#{2.days.to_i}"
11
+ }
12
+ else
13
+ config.action_controller.perform_caching = false
14
+
15
+ config.cache_store = :null_store
16
+ end
17
+
18
+ config.active_support.deprecation = :log
19
+ end
@@ -0,0 +1,18 @@
1
+ Rails.application.configure do
2
+ config.cache_classes = true
3
+ config.eager_load = true
4
+ config.consider_all_requests_local = false
5
+ config.action_controller.perform_caching = true
6
+ config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
7
+ config.log_level = :debug
8
+ config.log_tags = [ :request_id ]
9
+ config.i18n.fallbacks = true
10
+ config.active_support.deprecation = :notify
11
+ config.log_formatter = ::Logger::Formatter.new
12
+
13
+ if ENV["RAILS_LOG_TO_STDOUT"].present?
14
+ logger = ActiveSupport::Logger.new(STDOUT)
15
+ logger.formatter = config.log_formatter
16
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
17
+ end
18
+ end
@@ -0,0 +1,15 @@
1
+ Rails.application.configure do
2
+ config.cache_classes = true
3
+ config.eager_load = false
4
+
5
+ config.public_file_server.enabled = true
6
+ config.public_file_server.headers = {
7
+ 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
8
+ }
9
+
10
+ config.consider_all_requests_local = true
11
+ config.action_controller.perform_caching = false
12
+ config.action_dispatch.show_exceptions = false
13
+ config.action_controller.allow_forgery_protection = false
14
+ config.active_support.deprecation = :stderr
15
+ end
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # ActiveSupport::Reloader.to_prepare do
4
+ # ApplicationController.renderer.defaults.merge!(
5
+ # http_host: 'example.org',
6
+ # https: false
7
+ # )
8
+ # end
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ # Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path.
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+ # Add Yarn node_modules folder to the asset load path.
9
+ # Rails.application.config.assets.paths << Rails.root.join('node_modules')
10
+
11
+ # Precompile additional assets.
12
+ # application.js, application.css, and all non-JS/CSS in the app/assets
13
+ # folder are already added.
14
+ # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,25 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Define an application-wide content security policy
4
+ # For further information see the following documentation
5
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
6
+
7
+ # Rails.application.config.content_security_policy do |policy|
8
+ # policy.default_src :self, :https
9
+ # policy.font_src :self, :https, :data
10
+ # policy.img_src :self, :https, :data
11
+ # policy.object_src :none
12
+ # policy.script_src :self, :https
13
+ # policy.style_src :self, :https
14
+
15
+ # # Specify URI for violation reports
16
+ # # policy.report_uri "/csp-violation-report-endpoint"
17
+ # end
18
+
19
+ # If you are using UJS then enable automatic nonce generation
20
+ # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
21
+
22
+ # Report CSP violations to a specified URI
23
+ # For further information see the following documentation:
24
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
25
+ # Rails.application.config.content_security_policy_report_only = true
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Specify a serializer for the signed and encrypted cookie jars.
4
+ # Valid options are :json, :marshal, and :hybrid.
5
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,33 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # 'true': 'foo'
28
+ #
29
+ # To learn more, please read the Rails Internationalization guide
30
+ # available at http://guides.rubyonrails.org/i18n.html.
31
+
32
+ en:
33
+ hello: "Hello world"
@@ -0,0 +1,34 @@
1
+ # Puma can serve each request in a thread from an internal thread pool.
2
+ # The `threads` method setting takes two numbers: a minimum and maximum.
3
+ # Any libraries that use thread pools should be configured to match
4
+ # the maximum value specified for Puma. Default is set to 5 threads for minimum
5
+ # and maximum; this matches the default thread size of Active Record.
6
+ #
7
+ threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8
+ threads threads_count, threads_count
9
+
10
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
11
+ #
12
+ port ENV.fetch("PORT") { 3000 }
13
+
14
+ # Specifies the `environment` that Puma will run in.
15
+ #
16
+ environment ENV.fetch("RAILS_ENV") { "development" }
17
+
18
+ # Specifies the number of `workers` to boot in clustered mode.
19
+ # Workers are forked webserver processes. If using threads and workers together
20
+ # the concurrency of the application would be max `threads` * `workers`.
21
+ # Workers do not work on JRuby or Windows (both of which do not support
22
+ # processes).
23
+ #
24
+ # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
25
+
26
+ # Use the `preload_app!` method when specifying a `workers` number.
27
+ # This directive tells Puma to first boot the application and load code
28
+ # before forking the application. This takes advantage of Copy On Write
29
+ # process behavior so workers use less memory.
30
+ #
31
+ # preload_app!
32
+
33
+ # Allow puma to be restarted by `rails restart` command.
34
+ plugin :tmp_restart
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ mount Clicksign::Webhooks::Engine => "/clicksign-webhooks"
3
+ end
@@ -0,0 +1,6 @@
1
+ %w[
2
+ .ruby-version
3
+ .rbenv-vars
4
+ tmp/restart.txt
5
+ tmp/caching-dev.txt
6
+ ].each { |path| Spring.watch(path) }
@@ -0,0 +1,251 @@
1
+ Started POST "/clicksign-webhooks" for ::1 at 2018-10-25 14:10:41 -0300
2
+
3
+ ActionController::RoutingError (No route matches [POST] "/clicksign-webhooks"):
4
+
5
+ actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call'
6
+ actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
7
+ railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app'
8
+ railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call'
9
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged'
10
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged'
11
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged'
12
+ railties (5.2.1) lib/rails/rack/logger.rb:26:in `call'
13
+ actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
14
+ actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call'
15
+ rack (2.0.5) lib/rack/method_override.rb:22:in `call'
16
+ rack (2.0.5) lib/rack/runtime.rb:22:in `call'
17
+ activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
18
+ actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
19
+ actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call'
20
+ rack (2.0.5) lib/rack/sendfile.rb:111:in `call'
21
+ railties (5.2.1) lib/rails/engine.rb:524:in `call'
22
+ rack (2.0.5) lib/rack/handler/webrick.rb:86:in `service'
23
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
24
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
25
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
26
+ Started POST "/clicksign-webhooks" for ::1 at 2018-10-25 14:11:25 -0300
27
+
28
+ ActionController::RoutingError (No route matches [POST] "/clicksign-webhooks"):
29
+
30
+ actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call'
31
+ actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
32
+ railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app'
33
+ railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call'
34
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged'
35
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged'
36
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged'
37
+ railties (5.2.1) lib/rails/rack/logger.rb:26:in `call'
38
+ actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
39
+ actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call'
40
+ rack (2.0.5) lib/rack/method_override.rb:22:in `call'
41
+ rack (2.0.5) lib/rack/runtime.rb:22:in `call'
42
+ activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
43
+ actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
44
+ actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call'
45
+ rack (2.0.5) lib/rack/sendfile.rb:111:in `call'
46
+ railties (5.2.1) lib/rails/engine.rb:524:in `call'
47
+ rack (2.0.5) lib/rack/handler/webrick.rb:86:in `service'
48
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
49
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
50
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
51
+ Started POST "/clicksign-webhooks" for ::1 at 2018-10-25 14:15:27 -0300
52
+
53
+ ActionController::RoutingError (No route matches [POST] "/clicksign-webhooks"):
54
+
55
+ actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call'
56
+ actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
57
+ railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app'
58
+ railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call'
59
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged'
60
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged'
61
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged'
62
+ railties (5.2.1) lib/rails/rack/logger.rb:26:in `call'
63
+ actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
64
+ actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call'
65
+ rack (2.0.5) lib/rack/method_override.rb:22:in `call'
66
+ rack (2.0.5) lib/rack/runtime.rb:22:in `call'
67
+ activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
68
+ actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
69
+ actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call'
70
+ rack (2.0.5) lib/rack/sendfile.rb:111:in `call'
71
+ railties (5.2.1) lib/rails/engine.rb:524:in `call'
72
+ rack (2.0.5) lib/rack/handler/webrick.rb:86:in `service'
73
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
74
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
75
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
76
+ Started POST "/clicksign-webhooks/events" for ::1 at 2018-10-25 14:15:37 -0300
77
+ Processing by Clicksign::Webhooks::WebhooksController#events as */*
78
+ Parameters: {"event"=>{"name"=>"add_signer", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}], "webhook"=>{"event"=>{"name"=>"add_signer", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}]}}
79
+ Completed 500 Internal Server Error in 8ms
80
+
81
+
82
+
83
+ NameError (undefined local variable or method `byebug' for #<Clicksign::Webhooks::WebhooksController:0x007fe00ebc8248>):
84
+
85
+ /Users/nexoos_brasil/dev/clicksign-webhooks/app/controllers/clicksign/webhooks/webhooks_controller.rb:6:in `events'
86
+ actionpack (5.2.1) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
87
+ actionpack (5.2.1) lib/abstract_controller/base.rb:194:in `process_action'
88
+ actionpack (5.2.1) lib/action_controller/metal/rendering.rb:30:in `process_action'
89
+ actionpack (5.2.1) lib/abstract_controller/callbacks.rb:42:in `block in process_action'
90
+ activesupport (5.2.1) lib/active_support/callbacks.rb:98:in `run_callbacks'
91
+ actionpack (5.2.1) lib/abstract_controller/callbacks.rb:41:in `process_action'
92
+ actionpack (5.2.1) lib/action_controller/metal/rescue.rb:22:in `process_action'
93
+ actionpack (5.2.1) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
94
+ activesupport (5.2.1) lib/active_support/notifications.rb:168:in `block in instrument'
95
+ activesupport (5.2.1) lib/active_support/notifications/instrumenter.rb:23:in `instrument'
96
+ activesupport (5.2.1) lib/active_support/notifications.rb:168:in `instrument'
97
+ actionpack (5.2.1) lib/action_controller/metal/instrumentation.rb:32:in `process_action'
98
+ actionpack (5.2.1) lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
99
+ actionpack (5.2.1) lib/abstract_controller/base.rb:134:in `process'
100
+ actionpack (5.2.1) lib/action_controller/metal.rb:191:in `dispatch'
101
+ actionpack (5.2.1) lib/action_controller/metal.rb:252:in `dispatch'
102
+ actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
103
+ actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb:34:in `serve'
104
+ actionpack (5.2.1) lib/action_dispatch/journey/router.rb:52:in `block in serve'
105
+ actionpack (5.2.1) lib/action_dispatch/journey/router.rb:35:in `each'
106
+ actionpack (5.2.1) lib/action_dispatch/journey/router.rb:35:in `serve'
107
+ actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb:840:in `call'
108
+ railties (5.2.1) lib/rails/engine.rb:524:in `call'
109
+ railties (5.2.1) lib/rails/railtie.rb:190:in `public_send'
110
+ railties (5.2.1) lib/rails/railtie.rb:190:in `method_missing'
111
+ actionpack (5.2.1) lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>'
112
+ actionpack (5.2.1) lib/action_dispatch/routing/mapper.rb:48:in `serve'
113
+ actionpack (5.2.1) lib/action_dispatch/journey/router.rb:52:in `block in serve'
114
+ actionpack (5.2.1) lib/action_dispatch/journey/router.rb:35:in `each'
115
+ actionpack (5.2.1) lib/action_dispatch/journey/router.rb:35:in `serve'
116
+ actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb:840:in `call'
117
+ rack (2.0.5) lib/rack/tempfile_reaper.rb:15:in `call'
118
+ rack (2.0.5) lib/rack/etag.rb:25:in `call'
119
+ rack (2.0.5) lib/rack/conditional_get.rb:38:in `call'
120
+ rack (2.0.5) lib/rack/head.rb:12:in `call'
121
+ actionpack (5.2.1) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
122
+ rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context'
123
+ rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call'
124
+ actionpack (5.2.1) lib/action_dispatch/middleware/cookies.rb:670:in `call'
125
+ actionpack (5.2.1) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
126
+ activesupport (5.2.1) lib/active_support/callbacks.rb:98:in `run_callbacks'
127
+ actionpack (5.2.1) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
128
+ actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
129
+ actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
130
+ actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
131
+ railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app'
132
+ railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call'
133
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged'
134
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged'
135
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged'
136
+ railties (5.2.1) lib/rails/rack/logger.rb:26:in `call'
137
+ actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
138
+ actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call'
139
+ rack (2.0.5) lib/rack/method_override.rb:22:in `call'
140
+ rack (2.0.5) lib/rack/runtime.rb:22:in `call'
141
+ activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
142
+ actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
143
+ actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call'
144
+ rack (2.0.5) lib/rack/sendfile.rb:111:in `call'
145
+ railties (5.2.1) lib/rails/engine.rb:524:in `call'
146
+ rack (2.0.5) lib/rack/handler/webrick.rb:86:in `service'
147
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
148
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
149
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
150
+ Started POST "/clicksign-webhooks/events" for ::1 at 2018-10-25 14:56:53 -0300
151
+ Processing by Clicksign::Webhooks::WebhooksController#events as */*
152
+ Parameters: {"event"=>{"name"=>"add_signer", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}], "webhook"=>{"event"=>{"name"=>"add_signer", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}]}}
153
+ a
154
+ Completed 500 Internal Server Error in 560478ms
155
+
156
+
157
+
158
+ SystemExit (exit):
159
+
160
+ (byebug):1:in `exit'
161
+ (byebug):1:in `events'
162
+ Started POST "/clicksign-webhooks/events" for ::1 at 2018-10-25 15:06:17 -0300
163
+ Processing by Clicksign::Webhooks::WebhooksController#events as */*
164
+ Parameters: {"event"=>{"name"=>"add_signer", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}], "webhook"=>{"event"=>{"name"=>"add_signer", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}]}}
165
+ Invalid configuration: on_add_signer
166
+ Completed 204 No Content in 9ms
167
+
168
+
169
+ Started POST "/clicksign-webhooks/events" for ::1 at 2018-10-25 15:06:40 -0300
170
+ Processing by Clicksign::Webhooks::WebhooksController#events as */*
171
+ Parameters: {"event"=>{"name"=>"add_signer", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}], "webhook"=>{"event"=>{"name"=>"add_signer", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}]}}
172
+ Invalid configuration: on_add_signer
173
+ Completed 500 Internal Server Error in 11ms
174
+
175
+
176
+ Started POST "/clicksign-webhooks/events" for ::1 at 2018-10-25 15:07:01 -0300
177
+ Processing by Clicksign::Webhooks::WebhooksController#events as */*
178
+ Parameters: {"event"=>{"name"=>"upload", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}], "webhook"=>{"event"=>{"name"=>"upload", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}]}}
179
+ Completed 201 Created in 12ms
180
+
181
+
182
+ Started POST "/clicksign-webhooks/events" for ::1 at 2018-10-25 15:10:09 -0300
183
+ Processing by Clicksign::Webhooks::WebhooksController#events as */*
184
+ Parameters: {"event"=>{"name"=>"upload", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}], "webhook"=>{"event"=>{"name"=>"upload", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}]}}
185
+ Completed 201 Created in 9ms
186
+
187
+
188
+ Started POST "/clicksign-webhooks/events" for ::1 at 2018-10-25 15:10:16 -0300
189
+ Processing by Clicksign::Webhooks::WebhooksController#events as */*
190
+ Parameters: {"event"=>{"name"=>"upload", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}], "webhook"=>{"event"=>{"name"=>"upload", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}]}}
191
+ Completed 200 OK in 11ms
192
+
193
+
194
+ Started POST "/clicksign-webhooks/events" for ::1 at 2018-10-25 15:10:23 -0300
195
+ Processing by Clicksign::Webhooks::WebhooksController#events as */*
196
+ Parameters: {"event"=>{"name"=>"invalid", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}], "webhook"=>{"event"=>{"name"=>"invalid", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}]}}
197
+ Invalid configuration: on_invalid
198
+ Completed 500 Internal Server Error in 11ms
199
+
200
+
201
+ Started POST "/clicksign-webhooks/events" for ::1 at 2018-10-25 15:10:42 -0300
202
+ Processing by Clicksign::Webhooks::WebhooksController#events as */*
203
+ Parameters: {"event"=>{"name"=>"add_signer", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}], "webhook"=>{"event"=>{"name"=>"add_signer", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}]}}
204
+ Invalid configuration: on_add_signer
205
+ Completed 500 Internal Server Error in 19ms
206
+
207
+
208
+ Started POST "/clicksign-webhooks/events" for ::1 at 2018-10-25 15:50:34 -0300
209
+ Processing by Clicksign::Webhooks::WebhooksController#events as */*
210
+ Parameters: {"event"=>{"name"=>"add_signer", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}], "webhook"=>{"event"=>{"name"=>"add_signer", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}]}}
211
+ Invalid configuration: on_add_signer
212
+ Completed 500 Internal Server Error in 16ms
213
+
214
+
215
+ Started POST "/clicksign-webhooks/events" for ::1 at 2018-10-25 15:50:41 -0300
216
+ Processing by Clicksign::Webhooks::WebhooksController#events as */*
217
+ Parameters: {"event"=>{"name"=>"upload", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}], "webhook"=>{"event"=>{"name"=>"upload", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}]}}
218
+ Completed 200 OK in 12ms
219
+
220
+
221
+ Started POST "/clicksign-webhooks/events" for ::1 at 2018-10-25 16:02:09 -0300
222
+
223
+ ActionController::RoutingError (No route matches [POST] "/clicksign-webhooks/events"):
224
+
225
+ actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call'
226
+ actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
227
+ railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app'
228
+ railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call'
229
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged'
230
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged'
231
+ activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged'
232
+ railties (5.2.1) lib/rails/rack/logger.rb:26:in `call'
233
+ actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
234
+ actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call'
235
+ rack (2.0.5) lib/rack/method_override.rb:22:in `call'
236
+ rack (2.0.5) lib/rack/runtime.rb:22:in `call'
237
+ activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
238
+ actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
239
+ actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call'
240
+ rack (2.0.5) lib/rack/sendfile.rb:111:in `call'
241
+ railties (5.2.1) lib/rails/engine.rb:524:in `call'
242
+ rack (2.0.5) lib/rack/handler/webrick.rb:86:in `service'
243
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
244
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
245
+ /Users/nexoos_brasil/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
246
+ Started POST "/clicksign-webhooks/event" for ::1 at 2018-10-25 16:02:59 -0300
247
+ Processing by Clicksign::Webhooks::EventsController#create as */*
248
+ Parameters: {"event"=>{"name"=>"upload", "data"=>{"user"=>{"email"=>"email@empresa.com", "name"=>"Empresa de Teste"}, "account"=>{"key"=>"35286aca-beef-490d-ad23-bc5e78441232"}, "signers"=>[{"key"=>"c9d50ca2-543f-49ee-924a-345f23088434", "email"=>"email@empresa.com", "created_at"=>"2018-04-24T22:42:40.180-03:00", "sign_as"=>"witness", "auths"=>["sms"], "phone_number"=>"11987654321", "phone_number_hash"=>"66e0c202cea2d29452067233e8e0f8fe2808cca773852ab537e40cf4a68d16ae"}]}, "occurred_at"=>"2018-04-25T01:42:40.197Z"}, "document"=>{}, "signers"=>[], "events"=>[{"name"=>"add_signer"}, {"name"=>"sign"}, {"name"=>"upload"}]}
249
+ Completed 200 OK in 9ms
250
+
251
+