Error shown in html code

I have encountered with the following error. Pls help me to solve it.

@datta.naik sir how to solve this problem

Hi @jdduttajoy.06,
You do need to put the api_key and device id explicitly. It will auto initialized by bolt cloud.
So keep the code as it is setKey('{{ ApiKey }}','{{ Name }}');

Let me know in case you need further assistance.

@rahul.singh Sir, Still I am having problem
on runing the html part externally in browser, it opens nicely. But when the same code is uploaded, it is showing error


@rahul.singh sir pls help me to solve the problem

Hi @jdduttajoy.06,
Please do console and check for error or warning message.
Also, share your device with me. My email id is rahul.singh@inventrom.com .

@rahul.singh sir I have shared my device.

Hi @jdduttajoy.06 ,
There is a typo error in your code.

<script type="text/javascript" scr="http://cloud.boltiot.com/static/js/boltCommands.js">

The correct code will be
<script type="text/javascript" src="http://cloud.boltiot.com/static/js/boltCommands.js">

Let me know in case you need further assistance.

@rahul.singh sir, Same problem.
moreover the code if is directly run then the webpage opens.
but when uploaded, it is showing error

Error-


@rahul.singh Sir, in a blank space when I write at that point only it starts showing error

Hi @jdduttajoy.06

When you are writing HTML code, just ignore the error that the editor is showing. That error is meant only for javascript and not for HTML.