Error shown in html code


#1

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


#2

@datta.naik sir how to solve this problem


#3

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.


#4

@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



#5

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


#6

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 .


#7

@rahul.singh sir I have shared my device.


#8

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.


#9

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


#10

Error-



#11

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


#12

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.