Named entity expected

856 views
Skip to first unread message

Toshi Bass

unread,
Feb 1, 2017, 12:53:57 PM2/1/17
to Node-RED
I have the following code in a template node, which displays a video feed on the UI/dashboard, it works fine but I get:   X  Named entity expected. Got none 

I googled the problem and maybe its something to do with the & in the code, I think, tried &amp and %26 but both make the code fail

Any ideas how to fix or should I pretend its ok because like I said it works fine as it is?

<style>
iframe{ 
    width:640px; 
    height: 370px; 
    overflow-x: hidden; 
    overflow-y: scroll;
}
</style>

<iframe name="Frame1" src="http://192.168.0.129:81/videostream.cgi?loginuse=admin&loginpas=password" frameborder="5" allowfullscreen></iframe>







Julian Knight

unread,
Feb 1, 2017, 4:12:15 PM2/1/17
to Node-RED
One or 2 issues there maybe. Where do you get the error? In NR or in the browser?

I don't think it can be the & unless Node-RED is doing something odd with it, that code works fine when I test it in the browser. Using URL encoding might be preferred so your replacement with &amp; should work (remember to include the trailing ; though, it wasn't in your example).

The other issue isn't related to your problem but of course, you shouldn't be including an id & password in the URL if you can help it since, especially without TLS, URL's may get cached. I realise that your example is internal to your network but it still isn't good practice. I certainly wouldn't do that over a public network.

Toshi Bass

unread,
Feb 2, 2017, 6:07:33 AM2/2/17
to Node-RED
yep that was the problem ... &amp; should work remember to include the trailing ; thanks

Hear what your saying about id & password in the URL just in the test stage of trying to get this to work. 
Reply all
Reply to author
Forward
0 new messages