1

wialon is not defined?

Topic: wialon is not defined?

Hi

I have a cuestion, I copy and past this code from this page:
https://sdk.wialon.com/playground/demo/get_units
with the scripts in a HTML but send me a error "wialon is not defined" In this part of my code:
wialon.core.Session.getInstance().initSession("https://hst-api.wialon.com");

Can you help me? Thanks

2

wialon is not defined?

Re: wialon is not defined?

I have a new problem, this error "Error performing request"

The error is in: Uncaught DOMException: An invalid or illegal string was specified. In post.html:101

Help please.

3

wialon is not defined?

Re: wialon is not defined?

Hello Monica!

Have you added the script source - hst-api.wialon.com/wsdk/script/wialon.js  ?
https://sdk.wialon.com/wiki/en/sidebar/ … ref/apiref

this error "Error performing request"

The error is in: Uncaught DOMException: An invalid or illegal string was specified. In post.html:101

It seems like  the file (html) is not launched from some server or local server.  You cannot just open this file from PC directory, as the HTTP requests to Wialon  should be executed from another server. On PC there is launched local server, for example like Denwer

Diana Cheley
Wialon Hosting Expert
Gurtam