Hey team - we opened a ticket already (

Hey team - we opened a ticket already (https://community.thoughtspot.com/s/case/500Uk00000LnIz5IAF/login-fails-with-we-couldnt-complete-your-request). It seems that API calls on your side are failing. Could you please investigate further?
6 Replies
shikharTS
shikharTS4w ago
The APIs failing should not have any functional affect on your embedded application. Though I did see the liveboard GUID was coming as undefined in console logs. Can you check what liveboard GUID you are using? For the 401 errors in the API we are already working on fixing them, but that is not the cause for error in this case.
Nađa Bencan Sepic
This is the message - it has a functional impact on the app. If we use the search bar and click on anything it becomes responsive. But initial page load gives us this message.
No description
Nađa Bencan Sepic
We didn't even try to open any liveboard so can not provide you with GUID - this was when attempting to open homepage for the user on TS.
shikharTS
shikharTS4w ago
There are a few errors in the HAR file. But the main culprit I feel might be this error in console logs
Uncaught (in promise) Error: Variable "$id" got invalid value "undefined"; Expected type "GUID". GUID should be in form "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
500: Internal Server Error
e apollo-client.3.4.13.js:66
sf apollo-client.3.4.13.js:77
E apollo-client.3.4.13.js:45
Uncaught (in promise) Error: Variable "$id" got invalid value "undefined"; Expected type "GUID". GUID should be in form "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
500: Internal Server Error
e apollo-client.3.4.13.js:66
sf apollo-client.3.4.13.js:77
E apollo-client.3.4.13.js:45
Can you post the code snippet that you are using to embed liveboard. cc @Justin Mathew to also check
Nađa Bencan Sepic
const pinboardId = this.route.snapshot?.queryParams?.['pinboardId']; init({ thoughtSpotHost: host, authType: AuthType.TrustedAuthTokenCookieless, autoLogin: true, username: username, getAuthToken: () => lastValueFrom(this.analyticsService.getAuthToken()), }).on(AuthStatus.SDK_SUCCESS, () => { this.analyticsService.logIn(); }); const appEmbed = new AppEmbed(document.getElementById('ts-embed'), { frameParams: { width: '100%', height: '99%', }, showPrimaryNavbar: true, isLiveboardHeaderSticky: true, locale: this.languageService.getTsLanguageCode(), path: pinboard/${pinboardId} }) One of the developers just reported that it may be in fact due to GUID mapping. We'll let you know.
Justin Mathew
Justin Mathew4w ago
yup that is the case , @Nađa Bencan Sepic you can also inspect the actual thougthsptot iframe that is rendered and check its URL , that will give you a clue with certainty do let us know if you need any further help

Did you find this page helpful?