# Node-red + Sentilo = Error

**URL:** <https://discourse.nodered.org/t/node-red-sentilo-error/4253>\
**Category:** General\
**Created:** [24 October 2018 09:48 UTC](https://discourse.nodered.org/t/node-red-sentilo-error/4253 "2018-10-24T09:48:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pentadom](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@pentadom](https://discourse.nodered.org/u/pentadom)\
**Post date:** [24 October 2018 09:48 UTC](https://discourse.nodered.org/t/node-red-sentilo-error/4253/1 "2018-10-24T09:48:20Z")

</div>

Hello,

I'm trying to publish a value from node-red to a sensor I created in the Sentilo platform and when I trigger the value to the server the node-red return the next error:

Some info:

I'm running the Sentilo in a virtual machine in my own computer and I created the next sensor:

![node-red%20error](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/d5567bc19225b0267e7d14c9c324bc5d322b1d9f.png) ![sentilo-sensor](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/90b4b84fd777e7b97b765ce02890dea8ad3dbfe4.png)

Node-red Flow and configuration of the nodes:

![sentilo_flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/4af7238ad64f8ef7974bea0e36f3518acd1ae3a2.png)

 ![inject_node%20config](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/25a0e4ade4acb49c0312409b1152c442bcbb4df9.png)

![inject_node%20json](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/d8498225c171d5b70355c52277371605699b2c68.png)

 ![publish-node%20config](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/ba5278a2f139544d9d02e364a900372e93232601.png)

![server-node%20config](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/2367adc91d6cf1ec956ad50f6a0dd33022121012.png)

Thanks in advance for the help!!

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [24 October 2018 10:20 UTC](https://discourse.nodered.org/t/node-red-sentilo-error/4253/2 "2018-10-24T10:20:38Z")

</div>

The error is an uncaught exception in the `node-red-contrib-sentilo` node. You should raise an issue against that node with those details so they can add the missing error handling - [https://github.com/sentilo/node-red-contrib-sentilo](https://github.com/sentilo/node-red-contrib-sentilo)

Looking at the specific error, it looks like the sentilo node has made an HTTP request to their platform and expects the response to be JSON. But it's saying the first character of the response is a `<` - so my guess is the response has been an HTML page, not a JSON string.

Either way, their code needs to handle this exception.

Nick
