sendgrid / eventkit-rails

An open source project for integrating with SendGrid's Event Webhook.
Open Software License 3.0
53 stars 73 forks source link

No events are posted #16

Open UWHeroKU opened 8 years ago

UWHeroKU commented 8 years ago

Good day,

I am no expert at this so please bare with me. I manage to deploy the app to heroku and find the logs for the app created and this is what I see:

2015-12-16T18:27:33.727360+00:00 heroku[router]: at=info method=POST path="/ " host=eventreporting.herokuapp.com request_id=105cc41b-bf3b-4138-86e1-4cda3ed6e4a2 fwd="167.89.121.251" dyno=web.1 connect=1ms service=2ms status=400 bytes=28

When I go to sendgrid to send a test post I get:

2015-12-16T18:27:33.736266+00:00 app[web.1]: Started POST "/%0A%0A%0A" for 167.89.125.224 at 2015-12-16 18:27:33 +0000 2015-12-16T18:27:33.739092+00:00 app[web.1]: 2015-12-16T18:27:33.739094+00:00 app[web.1]: ActionController::RoutingError (No route matches [POST] "/%0A%0A%0A"): 2015-12-16T18:27:33.739096+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.8/lib/action_dispatch/middle ware/debug_exceptions.rb:21:in `call'

Any help would be greatly appreciated. Thanks.

agentformula commented 7 years ago

any help appreciated - same here, issue for me is ActionController::RoutingError (No route matches [POST] "/%0A"):

pvcfromsouthauckland commented 6 years ago

The sendgrid HTTP POST URL input is a multi-line textbox that allows entering newlines. You have entered newlines into the URL and these are being POSTed as part of the request as %0A .