# Closing brace missing in webhook JSON

**URL:** <https://meta.discourse.org/t/closing-brace-missing-in-webhook-json/50418>\
**Category:** Bug\
**Created:** [September 20, 2016, 11:31pm UTC](https://meta.discourse.org/t/closing-brace-missing-in-webhook-json/50418 "2016-09-20T23:31:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)\
**Post date:** [September 21, 2016, 2:36am UTC](https://meta.discourse.org/t/closing-brace-missing-in-webhook-json/50418/3 "2016-09-21T02:36:41Z")

</div>

PHP respects `Content-Length` correctly so it truncates the string in the middle. The problem is that the payload is not count in octets.

Pull request: [FIX: Content-Lenght should be the size in octets by erickguan · Pull Request #4451 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/4451)

---

_[View the full topic](https://meta.discourse.org/t/closing-brace-missing-in-webhook-json/50418)._
