# Node: http://boardoftrustees-elk.kb.westeurope.azure.elastic-cloud.com:9243/, status: 400, \[es/indices.create\] Expecting JSON data but response content-type is: application/octet-stream

**URL:** <https://discuss.elastic.co/t/node-http-boardoftrustees-elk-kb-westeurope-azure-elastic-cloud-com-9243-status-400-es-indices-create-expecting-json-data-but-response-content-type-is-application-octet-stream/360024>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [May 22, 2024, 8:25pm UTC](https://discuss.elastic.co/t/node-http-boardoftrustees-elk-kb-westeurope-azure-elastic-cloud-com-9243-status-400-es-indices-create-expecting-json-data-but-response-content-type-is-application-octet-stream/360024 "2024-05-22T20:25:35Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 23, 2024, 1:58am UTC](https://discuss.elastic.co/t/node-http-boardoftrustees-elk-kb-westeurope-azure-elastic-cloud-com-9243-status-400-es-indices-create-expecting-json-data-but-response-content-type-is-application-octet-stream/360024/6 "2024-05-23T01:58:50Z")

</div>

I think it comes with the wrong content type because you are not hitting the right endpoint. I can see in the capture that your are using http and not https.

---

_[View the full topic](https://discuss.elastic.co/t/node-http-boardoftrustees-elk-kb-westeurope-azure-elastic-cloud-com-9243-status-400-es-indices-create-expecting-json-data-but-response-content-type-is-application-octet-stream/360024)._
