# Webhook delivery errors when length is incorrect

**URL:** <https://meta.discourse.org/t/webhook-delivery-errors-when-length-is-incorrect/49912>\
**Category:** Product Support\
**Created:** [Septembre 8, 2016, 10:09 UTC](https://meta.discourse.org/t/webhook-delivery-errors-when-length-is-incorrect/49912 "2016-09-08T22:09:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rhyolight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhyolight/32/120422_2.png) [@rhyolight](https://meta.discourse.org/u/rhyolight)\
**Post date:** [Septembre 8, 2016, 10:09 UTC](https://meta.discourse.org/t/webhook-delivery-errors-when-length-is-incorrect/49912/1 "2016-09-08T22:09:01Z")

</div>

Some of the HTTP requests being sent to one of my webhooks are being returned with 400 errors. From what I can tell on the client of these requests, it seems like the request body might be getting cut short, or that the `Content-Length` of the requests doesn’t match the POST body.

For you admins on our hosted instance, you can see the webhook deliveries [here](https://discourse.numenta.org/admin/web_hooks/1/events).

 ![](https://global.discourse-cdn.com/meta/original/3X/7/6/76c80d12d7d6fe87bd71b7de009e5efd643efd61.png)

I cannot tell why some of these requests are valid and some are not. The same logic is processes each request and just logging it to console. From inspecting them in the UI, they all look good, but some of them returned 400. The server logs show `SyntaxError: Unexpected end of input` which leads me to believe the JSON is possibly invalid because the POST body was cut short?

Any ideas?

---

_[View the full topic](https://meta.discourse.org/t/webhook-delivery-errors-when-length-is-incorrect/49912)._
