# It seems to be a bug in ui\_template node

**URL:** https://discourse.nodered.org/t/it-seems-to-be-a-bug-in-ui-template-node/66941
**Category:** Dashboard
**Created:** [26 August 2022 01:28 UTC](https://discourse.nodered.org/t/it-seems-to-be-a-bug-in-ui-template-node/66941 "2022-08-26T01:28:29Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![liaonh](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@liaonh](https://discourse.nodered.org/u/liaonh)
#### Post date: [26 August 2022 01:28 UTC](https://discourse.nodered.org/t/it-seems-to-be-a-bug-in-ui-template-node/66941/1 "2022-08-26T01:28:29Z")

</div>

I send a message to the ui\_template node,  
the message is created by myself which with only two properties like this:  
{  
payload: 22637,  
topic: 'op1'  
}

there will be error:  
26 Aug 09:23:11 - [error] [ui\_template:3193d3296ec44028] RangeError: Maximum call stack size exceeded.

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [26 August 2022 02:23 UTC](https://discourse.nodered.org/t/it-seems-to-be-a-bug-in-ui-template-node/66941/2 "2022-08-26T02:23:53Z")

</div>

> [@liaonh](#):
>
> {  
> payload: 22637,  
> topic: 'op1',  
> }

{  
payload: 22637,  
topic: 'op1', **remove this comma**  
}

---

<div class="post-metadata">

### Author: ![liaonh](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@liaonh](https://discourse.nodered.org/u/liaonh)
#### Post date: [26 August 2022 02:42 UTC](https://discourse.nodered.org/t/it-seems-to-be-a-bug-in-ui-template-node/66941/3 "2022-08-26T02:42:35Z")

</div>

No, no, it is just a keyboard input error.  
The debug information is as following:

NodeSendMsg  
{ payload: 27409, topic: 'd5e91b65026eccaf' }  
NodeSendMsg  
{ payload: 27322, topic: 'c3842c0704330197' }  
NodeSendMsg  
{ payload: 27484, topic: '5e5c285ae70aadca' }  
NodeSendMsg  
{ payload: 27410, topic: 'd5e91b65026eccaf' }  
26 Aug 10:39:37 - [error] [ui\_template:3193d3296ec44028] RangeError: Maximum call stack size exceeded  
26 Aug 10:39:37 - [error] [ui\_template:3193d3296ec44028] RangeError: Maximum call stack size exceeded  
26 Aug 10:39:37 - [error] [ui\_template:3193d3296ec44028] RangeError: Maximum call stack size exceeded

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [26 August 2022 05:43 UTC](https://discourse.nodered.org/t/it-seems-to-be-a-bug-in-ui-template-node/66941/4 "2022-08-26T05:43:58Z")

</div>

It looks like you can produce it at will so create a small flow - maybe a couple infect nodes with the data and your ui-template node.

Once you verify it causes the error, export the flow and attach it to a response so someone can try to reproduce it.

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

Note: unfortunately it won’t be me since I’m at a location with no node-red available 😥

---

<div class="post-metadata">

### Author: ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)
#### Post date: [26 August 2022 21:22 UTC](https://discourse.nodered.org/t/it-seems-to-be-a-bug-in-ui-template-node/66941/5 "2022-08-26T21:22:57Z")

</div>

I tried

```auto
[{"id":"a0372a56e212d807","type":"ui_template","z":"7fdabd9.f693544","group":"f6124e036e2d2ffb","name":"","order":8,"width":0,"height":0,"format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":940,"y":1300,"wires":[[]]},{"id":"b86d654eb0c47a4e","type":"inject","z":"7fdabd9.f693544","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":600,"y":1300,"wires":[["44a5ce5dc5b5084a"]]},{"id":"44a5ce5dc5b5084a","type":"function","z":"7fdabd9.f693544","name":"function 1","func":"\nreturn {\npayload: 22637,\ntopic: 'op1'\n};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":760,"y":1300,"wires":[["a0372a56e212d807"]]},{"id":"f6124e036e2d2ffb","type":"ui_group","name":"Default","tab":"34ab7d39f3e308fc","order":1,"disp":true,"width":"5","collapse":false,"className":""},{"id":"34ab7d39f3e308fc","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c2168a8c5ac6d4f7d55daff24b9669e789451053.png)

which gives a result on the Dashboard of 22637 (as it should) so as @zenofmud says we need a bit more information

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [3 September 2022 16:34 UTC](https://discourse.nodered.org/t/it-seems-to-be-a-bug-in-ui-template-node/66941/6 "2022-09-03T16:34:11Z")

</div>

@liaonh Did you get anywhere with this ?

---

<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: [3 October 2022 16:35 UTC](https://discourse.nodered.org/t/it-seems-to-be-a-bug-in-ui-template-node/66941/7 "2022-10-03T16:35:05Z")

</div>

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