# Problem with http node request

**URL:** <https://discourse.nodered.org/t/problem-with-http-node-request/87460>\
**Category:** General\
**Created:** [24 April 2024 12:14 UTC](https://discourse.nodered.org/t/problem-with-http-node-request/87460 "2024-04-24T12:14:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giamma](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Post date:** [24 April 2024 12:14 UTC](https://discourse.nodered.org/t/problem-with-http-node-request/87460/1 "2024-04-24T12:14:14Z")

</div>

Hi, I try to explain and I understand that isn't easy but I would like to find a solution.  
I had already written two post, but the problem is always present...

I have a reolink cam and every 30 min I send with http node one (only one) http request (GET) to have a shot of the garden to show on my dashboard.

Sometimes maybe for bad wifi connection the cam don't show the image .....  
and in this case I haven't error and no problem in node-red but the cpu work increased from 4% to 27% with a notable increase of the cpu temperature and this value don't decrease not even when the cam show the image correctly and I'm forced to restart node red.

To isolate the issue I disconnected the node to the other function

 ![nodered](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fbee08e825b3d433e3b09427a46a727870594aa5.png)

and now I have only one function node with a simple menage error ....

![errfunc](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/8/18b7be17192779476ee2552e1cc29e896ba18142.png)

I have disconnected the cam from the electricity grid to to simulate a problem with the cam and this is what happens ...

![err2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/4/d425daf863983d4ab1ba5249bebf4cec06cc9551.png)

![err](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/4/f422c364b1750c6f72f40e8b180d31d7115a1140.png)

and the value of cpu temp and cpu work change from

![rasp1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/9/e96a8cf781b373d20a750233f6581592a3eecf81.png)

to

![rasp2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fb5d74173afd06c8842435567437be0159737e0e.png)

and this is a problem because the temp value continues to increase and I'm forced to restart node-red.

I think the problem is the http node and I would like your help to fix the issue.

* * *

Node-RED version: v3.1.8  
Node.js version: v18.20.0  
Linux 5.15.32-v7l+ arm LE  
Raspberry Pi4 - SO raspberry

---

<div class="post-metadata">

**Author:** ![kitori](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kitori](https://discourse.nodered.org/u/kitori)\
**Post date:** [24 April 2024 14:09 UTC](https://discourse.nodered.org/t/problem-with-http-node-request/87460/2 "2024-04-24T14:09:44Z")

</div>

It doesn't solve the problem, but have you tryed using the exec node and pulling the image with curl?

---

<div class="post-metadata">

**Author:** ![Giamma](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Post date:** [24 April 2024 14:33 UTC](https://discourse.nodered.org/t/problem-with-http-node-request/87460/3 "2024-04-24T14:33:21Z")

</div>

No, I only know this method ....  
Do you have any links to understand how to do it?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [24 April 2024 17:58 UTC](https://discourse.nodered.org/t/problem-with-http-node-request/87460/4 "2024-04-24T17:58:40Z")

</div>

If you disconnect the _input_ to the http node and disconnect the power to the cam does the CPU still go up?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [24 April 2024 20:44 UTC](https://discourse.nodered.org/t/problem-with-http-node-request/87460/5 "2024-04-24T20:44:06Z")

</div>

If it doesn't show the problem with the input disconnected, then connect it up again and stop and start node red using  
`node-red-stop`  
`node-red-start`  
then make it show the problem, and copy/paste the full output from node-red-start here. Copy/paste please, not screenshot.

Also run the command `top` and screenshot that (while it is showing the problem) and paste it here.

---

<div class="post-metadata">

**Author:** ![kitori](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kitori](https://discourse.nodered.org/u/kitori)\
**Post date:** [25 April 2024 04:44 UTC](https://discourse.nodered.org/t/problem-with-http-node-request/87460/6 "2024-04-25T04:44:59Z")

</div>

here a 2 exec node, one return a buffer, the other a base64 encoded image.

curl return binary data if you point it to an image:

```auto
 curl https://nodered.org/images/platform-device.png

```

you can pipe the output to base64 to get .. a base64 encoded image

```auto
 curl https://nodered.org/images/platform-device.png | base64

```

```auto
[{"id":"05c0f83ad1c50b1e","type":"inject","z":"527fe7341bb5fe46","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":120,"wires":[["fbc161d6ee269137"]]},{"id":"b6b80c2d7f35ad47","type":"debug","z":"527fe7341bb5fe46","name":"debug 22","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":600,"y":120,"wires":[]},{"id":"fbc161d6ee269137","type":"exec","z":"527fe7341bb5fe46","command":" curl https://nodered.org/images/platform-device.png","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"buffer","x":370,"y":120,"wires":[["b6b80c2d7f35ad47"],[],[]]},{"id":"fe74e44eed32fd0c","type":"exec","z":"527fe7341bb5fe46","command":" curl https://nodered.org/images/platform-device.png | base64","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"base64","x":380,"y":180,"wires":[[],[],[]]}]

```

---

<div class="post-metadata">

**Author:** ![Giamma](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Post date:** [25 April 2024 07:47 UTC](https://discourse.nodered.org/t/problem-with-http-node-request/87460/7 "2024-04-25T07:47:04Z")

</div>

Thank you ....

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 July 2024 07:47 UTC](https://discourse.nodered.org/t/problem-with-http-node-request/87460/8 "2024-07-24T07:47:16Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
