title: Stripe webhook don't work, error 500
body: <p>Hi I setting up my webhook build with express.js in this way (the webhook is hosted on Parse.com):</p>
  
  <pre><code>var Stripe = require('stripe');
  Stripe.initialize('sk_test_...');
  ...
  app.post("/stripe", function(request, response) {
      console.log("Type: "+request.body.type);
      console.log("Event id: "+ request.body.id);
      // Retrieve the request's body and parse it as JSON
      // Verify the event by fetching it from Stripe
      Stripe.Events.retrieve(request.body.id, function(err, event) {
          console.log("This string is not printed on the logs");
          response.send(200);
      });
  });
  </code></pre>
  
  <p>Then the test request was this, generated with changing a test user subscription in the dashboard:</p>
  
  <pre><code>{
    "id": "evt_16oKcXAEHouDaR4rj8m5AtcC",
    "created": 1443043065,
    "livemode": false,
    "type": "customer.subscription.updated",
    "data": {
      "object": {
        "id": "sub_71zTKb8dLfo3RX",
        ...
        "start": 1443042949
      }
    },
    "object": "event",
    "pending_webhooks": 3,
    "request": "req_72PRYW2FrgFkDr",
    "api_version": "2015-04-07"
  }
  </code></pre>
  
  <p>This is my webhook log:</p>
  
  <pre><code>E2015-09-23T22:36:40.864Z]v342 Ran custom endpoint with:
  Input: {"method":"POST","url":"/stripe","headers":{"accept":"*/*;  q=0.5, application/xml","cache-control":"no-cache","content- length":"1358","content-type":"application/json; charset=utf- 8","host":"sceglime.parseapp.com","user-agent":"Stripe/1.0  (+https://stripe.com/docs/webhooks)","version":"HTTP/1.1","x-forwarded-for":"54.241.31.102, 10.252.11.20","x-forwarded-port":"80","x-forwarded-  proto":"http"}}
  Result: success/error was not called
  I2015-09-23T22:36:40.974Z]Type: customer.subscription.updated
  I2015-09-23T22:36:40.975Z]Event id: evt_16oLqrAEHouDaR4rpAi8FWt2
  E2015-09-23T22:36:43.246Z]v342 Ran custom endpoint with:
  Input: {"method":"POST","url":"/stripe","headers":{"accept":"*/*;    q=0.5, application/xml","cache-control":"no-cache","content-length":"1160","content-type":"application/json; charset=utf-8","host":"sceglime.parseapp.com","user-agent":"Stripe/1.0 (+https://stripe.com/docs/webhooks)","version":"HTTP/1.1","x-forwarded-for":"54.241.34.107, 10.252.7.139","x-forwarded-port":"80","x-forwarded-proto":"http"}}
  Result: success/error was not called
  I2015-09-23T22:36:43.332Z]Type: invoiceitem.created
  I2015-09-23T22:36:43.333Z]Event id: evt_16oLqrAEHouDaR4rcj0syMGn
  </code></pre>
  
  <p>On stripe logs I get an error "500 pending". Why the webhook don't respond correctly?</p>
  
  <p>Thanks</p>