# How to fetch browser console data to node-red debug message?

**URL:** https://discourse.nodered.org/t/how-to-fetch-browser-console-data-to-node-red-debug-message/46263
**Category:** General
**Created:** [26 May 2021 09:39 UTC](https://discourse.nodered.org/t/how-to-fetch-browser-console-data-to-node-red-debug-message/46263 "2021-05-26T09:39:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jdenbaibai](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jdenbaibai](https://discourse.nodered.org/u/jdenbaibai)
#### Post date: [26 May 2021 09:39 UTC](https://discourse.nodered.org/t/how-to-fetch-browser-console-data-to-node-red-debug-message/46263/1 "2021-05-26T09:39:37Z")

</div>

Good evening everyone, I'm facing problem about fetching the browser console data to node-red debug message, I want to fetch the browser console message which is "default" to the node-red debug message.

 ![console](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/7/67308afeefb4b23bc83325c45a7344b1bc48e114.png)

and this is the flow I'm using

```auto
[{"id":"1f80c6c.a19f439","type":"tab","label":"Flow 15","disabled":false,"info":""},{"id":"4c0e9bf3.591894","type":"inject","z":"1f80c6c.a19f439","name":"make request","props":[{"p":"payload","v":"","vt":"date"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":130,"y":120,"wires":[["ccf839dc.b5a448"]]},{"id":"ccf839dc.b5a448","type":"http request","z":"1f80c6c.a19f439","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://editor.p5js.org/jdencool0830/sketches/rMhrUb8a0","tls":"","persist":false,"proxy":"","authType":"","x":370,"y":120,"wires":[["6b766193.08728"]]},{"id":"6b766193.08728","type":"debug","z":"1f80c6c.a19f439","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":120,"wires":[]}]

```

and this is what I got in the debug message

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

which does not show the browser console message at all. Do anyone know how to modify this? Thank you eveyone.

---

<div class="post-metadata">

### Author: ![jdenbaibai](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jdenbaibai](https://discourse.nodered.org/u/jdenbaibai)
#### Post date: [26 May 2021 09:41 UTC](https://discourse.nodered.org/t/how-to-fetch-browser-console-data-to-node-red-debug-message/46263/2 "2021-05-26T09:41:07Z")

</div>

![flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/8/88dc80a30798ea8291e82c4e15d73a28094cd4da.png)

this is the flow that im using

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [26 May 2021 12:11 UTC](https://discourse.nodered.org/t/how-to-fetch-browser-console-data-to-node-red-debug-message/46263/3 "2021-05-26T12:11:20Z")

</div>

A http request will get/download the HTML from the url - HOWEVER - it is NOT a browser and it will NOT execute javascript - so you wont/cant get the console logs.

---

<div class="post-metadata">

### Author: ![jdenbaibai](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jdenbaibai](https://discourse.nodered.org/u/jdenbaibai)
#### Post date: [26 May 2021 15:11 UTC](https://discourse.nodered.org/t/how-to-fetch-browser-console-data-to-node-red-debug-message/46263/4 "2021-05-26T15:11:53Z")

</div>

Thank you for answering, is there any other node that are able to fetch the console message from web editor to node-red?

 ![p5](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/8/38c508542b2ab8039bdf56b4a44a00f32821623f.png)

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [26 May 2021 15:15 UTC](https://discourse.nodered.org/t/how-to-fetch-browser-console-data-to-node-red-debug-message/46263/5 "2021-05-26T15:15:54Z")

</div>

Not really. You would need to embed that site or recreate its functionality in a dashboard (of some kind) using dashboard template or uibuilber, and capture messages that would be sent to Console log and post them back to node-red.

---

<div class="post-metadata">

### Author: ![jdenbaibai](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jdenbaibai](https://discourse.nodered.org/u/jdenbaibai)
#### Post date: [27 May 2021 14:19 UTC](https://discourse.nodered.org/t/how-to-fetch-browser-console-data-to-node-red-debug-message/46263/6 "2021-05-27T14:19:28Z")

</div>

Noted, thank you so much Steve.

---

<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: [26 July 2021 14:20 UTC](https://discourse.nodered.org/t/how-to-fetch-browser-console-data-to-node-red-debug-message/46263/7 "2021-07-26T14:20:09Z")

</div>

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