Log Errors
Hey team, here after @Charlie Birch pointed to this channel. We are currently using the Visual SDK Basic Auth to test some POC. We are aware of the different types of auth available and know that this is not the best way to implement. Pretty new to the ThoughtSpot world and testing things around. For this thread, after the implementation we are getting some errors in the console even though the page is working fine. Could you help us figure out how to make sure we do not get that error message?
Clearing the console and visiting the next tab results in the same error message. The page will work fine though. @rumana-hf
4 Replies
Hi @Suvash ,
The first info call is supposed to fail when working with sdk and these console log errors won't be a problem.
But can you show the last error you getting in the console, that was not supposed to be there. And might be related to some other code.
And your code snipeet looks all good for the init part.
And also init is not an async though it wouldn't be a problem.
Thanks.
Hi @yuichirio_ha thank you for the response. Here is the error that showed. there is not much detail. Also, removed the await to see if that was causing it in my local but it changed nothing. The error is coming from our deployed app.
9BG.js:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
3BG.js:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
BG.js:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
3BG.js:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
5BG.js:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
Yeah, the first info call generally fails. which is expected flow.
And that logs error in console. We keep the error logs, in case some other failures are seen. Otherwise you can just disable the error logs.
https://developers.thoughtspot.com/docs/Interface_EmbedConfig#_loglevel
We can set up log level as you want.
Thanks.
Also the error you sent doesn't seems to be from sdk so, should be fine.
EmbedConfig
The configuration object for embedding ThoughtSpot content. It includes the ThoughtSpot hostname or IP address, the type of authentication, and the authentication endpoint if a trusted authentication server is used.
cool. thank you