helpyio / helpy

Helpy is a modern, open source helpdesk customer support application. Features include knowledgebase, community discussions and support tickets integrated with email.
http://helpy.io/?source=ghh
MIT License
2.38k stars 497 forks source link

Ticket creation through webhook fails #735

Closed faburem closed 7 years ago

faburem commented 7 years ago

Hello, I tried to connect helpy to sendgrid today but get the following error stack when sendgrid is calling the webhook. Any help is greatly appreciated!

Error during failsafe response: ActionController::InvalidAuthenticityToken /usr/local/bundle/gems/actionpack-4.2.8/lib/action_controller/metal/request_forgery_protection.rb:181:in handle_unverified_request' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_controller/metal/request_forgery_protection.rb:209:inhandle_unverified_request' /usr/local/bundle/gems/devise-3.5.6/lib/devise/controllers/helpers.rb:257:in handle_unverified_request' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_controller/metal/request_forgery_protection.rb:204:inverify_authenticity_token' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:432:in block in make_lambda' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:164:inblock in halting' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:504:in block in call' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:504:ineach' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:504:in call' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:92:in__run_callbacks__' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:778:in _run_process_action_callbacks' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:81:inrun_callbacks' /usr/local/bundle/gems/actionpack-4.2.8/lib/abstract_controller/callbacks.rb:19:in process_action' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_controller/metal/rescue.rb:29:inprocess_action' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_controller/metal/instrumentation.rb:32:in block in process_action' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/notifications.rb:164:inblock in instrument' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/notifications/instrumenter.rb:20:in instrument' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/notifications.rb:164:ininstrument' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_controller/metal/instrumentation.rb:30:in process_action' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_controller/metal/params_wrapper.rb:250:inprocess_action' /usr/local/bundle/gems/activerecord-4.2.8/lib/active_record/railties/controller_runtime.rb:18:in process_action' /usr/local/bundle/gems/actionpack-4.2.8/lib/abstract_controller/base.rb:137:inprocess' /usr/local/bundle/gems/actionview-4.2.8/lib/action_view/rendering.rb:30:in process' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_controller/metal.rb:196:indispatch' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_controller/metal/rack_delegation.rb:13:in dispatch' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_controller/metal.rb:237:inblock in action' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_dispatch/routing/route_set.rb:74:in dispatch' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_dispatch/routing/route_set.rb:43:inserve' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_dispatch/journey/router.rb:43:in block in serve' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_dispatch/journey/router.rb:30:ineach' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_dispatch/journey/router.rb:30:in serve' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_dispatch/routing/route_set.rb:817:incall' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_dispatch/middleware/show_exceptions.rb:47:in render_exception' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_dispatch/middleware/show_exceptions.rb:35:inrescue in call' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_dispatch/middleware/show_exceptions.rb:30:in call' /usr/local/bundle/gems/railties-4.2.8/lib/rails/rack/logger.rb:38:incall_app' /usr/local/bundle/gems/railties-4.2.8/lib/rails/rack/logger.rb:20:in block in call' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/tagged_logging.rb:68:inblock in tagged' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/tagged_logging.rb:26:in tagged' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/tagged_logging.rb:68:intagged' /usr/local/bundle/gems/railties-4.2.8/lib/rails/rack/logger.rb:20:in call' /usr/local/bundle/gems/request_store-1.3.1/lib/request_store/middleware.rb:9:incall' /usr/local/bundle/gems/actionpack-4.2.8/lib/action_dispatch/middleware/request_id.rb:21:in call' /usr/local/bundle/gems/rack-1.6.8/lib/rack/methodoverride.rb:22:incall' /usr/local/bundle/gems/rack-1.6.8/lib/rack/runtime.rb:18:in call' /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall' /usr/local/bundle/gems/rack-1.6.8/lib/rack/sendfile.rb:113:in call' /usr/local/bundle/gems/railties-4.2.8/lib/rails/engine.rb:518:incall' /usr/local/bundle/gems/railties-4.2.8/lib/rails/application.rb:165:in call' /usr/local/bundle/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:562:inprocess_client' /usr/local/bundle/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:658:in worker_loop' /usr/local/bundle/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:508:inspawn_missing_workers' /usr/local/bundle/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:132:in start' /usr/local/bundle/gems/unicorn-5.1.0/bin/unicorn:126:in<top (required)>' /usr/local/bundle/bin/unicorn:17:in load' /usr/local/bundle/bin/unicorn:17:in<top (required)>' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/cli/exec.rb:74:in load' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/cli/exec.rb:74:inkernel_load' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/cli/exec.rb:27:in run' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/cli.rb:362:inexec' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:ininvoke_command' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor.rb:387:in dispatch' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/cli.rb:22:indispatch' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor/base.rb:466:in start' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/cli.rb:13:instart' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/exe/bundle:30:in block in <top (required)>' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/friendly_errors.rb:121:inwith_friendly_errors' /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/exe/bundle:22:in <top (required)>' /usr/local/bin/bundle:23:inload' /usr/local/bin/bundle:23:in `

'

faburem commented 7 years ago

Nevermind, this works just fine if you use the correct webhook url: http://your.domain.com/email_processor

elsurudo commented 6 years ago

I am using the correct webhook URL, and still encountering this issue. Any ideas?

scott commented 6 years ago

Make sure that sendgrid is chosen in the settings > email panel.

elsurudo commented 6 years ago

Actually I am using Sparkpost – is there a known issue with the Sparkpost adapter?