# Http request node =\> Invalid message body, was specified to be CBOR but could not decode message (Failed to parse)

**URL:** https://discourse.nodered.org/t/http-request-node-invalid-message-body-was-specified-to-be-cbor-but-could-not-decode-message-failed-to-parse/30503
**Category:** Core Development
**Created:** [21 July 2020 19:25 UTC](https://discourse.nodered.org/t/http-request-node-invalid-message-body-was-specified-to-be-cbor-but-could-not-decode-message-failed-to-parse/30503 "2020-07-21T19:25:03Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)
#### Post date: [22 July 2020 10:28 UTC](https://discourse.nodered.org/t/http-request-node-invalid-message-body-was-specified-to-be-cbor-but-could-not-decode-message-failed-to-parse/30503/9 "2020-07-22T10:28:38Z")

</div>

If I change the content-type from `application/cbor` into `application/octet-stream` then the test program is working as expected (ie. the buffer send is also received as a buffer).

Moreover this change also fixed the issue when sending data to edge impulse ([http://ingestion.edgeimpulse.com/api/training/data](http://ingestion.edgeimpulse.com/api/training/data)).

---

_[View the full topic](https://discourse.nodered.org/t/http-request-node-invalid-message-body-was-specified-to-be-cbor-but-could-not-decode-message-failed-to-parse/30503)._
