It seems to be a bug in ui_template node

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.

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

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

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 ```)

``` 
   code goes here 
```

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

See this post for more details - How to share code or flow json

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

I tried

[{"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

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

@liaonh Did you get anywhere with this ?

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