Another framing of the question above
Another framing of the question above. Can I render two Liveboards on one page with different liveboard ids?
15 Replies
I get a "Duplicate token" error when doing so. How come?
Yes, you should be able to render both in one page. They will be loaded into separate iframes. The duplicate token error seems like something related to the auth you are using.
Are you seeing multiple calls to get the token? Are you getting a fresh token for each new user? If you have the call stack that might help.
Are you seeing multiple calls to get the token? Are you getting a fresh token for each new user? If you have the call stack that might help.
There doesn't seem to be multiple calls to get the token. The scenario we have includes one user wanting to see the different boards
One board loads fine and then I see the alert with the duplicate token error
And you are using token based authentication?
Yes we are using the cookieless trusted authentication
We run init once and for one board it works. But when another board loads the error occur
I am able to embed two liveboards. I'm not using React or trusthed auth. I suspect it's related to the auth in this case.

We had a similar issue... can you post the code for your init call, especially the callback for the authentication?
"There does not seem to be multiple calls to get the token" That seem to be part of the problem, each liveboard should issue a call to get its own token.
That should be done automatically, but I suspect the
getThoughtSpotToken
method above is returning back the same token on multiple calls.@Sammi we have similar code, can you post your code for the getThoughtSpotToken function?
It's just an rest api call that returns a promise with the token
After more investigation we've realised that we can have two boards on the same page but if they through for example a react re-render changes, it doesn't work
Ideally we would want one board were the liveboard-id could change via react state but that needs a re-render and then it crashes
React rerender shouldn't be causing a crash. Can you please create a support ticket so that we can take a look ?
We found a solution where we have to different liveboards
Good to hear @Sammi . Do you mind sharing breifly what was the solution ?
Somehow it just started worked to have the two liveboards visible and using them on two different routes
So we went with the solution to have each route rendering one liveboard each with a different liveboardId