Hi there,

Hi there, I want to get liveboard filters using HostEvent.GetFilters but I am getting following error:
Error: Trigger timedout in getting response
at eval (processTrigger.ts:67:1)
This is the code I have:
Error: Trigger timedout in getting response
at eval (processTrigger.ts:67:1)
This is the code I have:
const Liveboard = () => {
const embedRef = useEmbedRef<typeof LiveboardEmbed>();

const getFilters: MessageCallback = useCallback(() => {
embedRef.current.trigger(HostEvent.GetFilters).then(console.log);
}, []);

return (
<LiveboardEmbed
ref={embedRef}
liveboardId={ID}
onLiveboardRendered={getFilters}
/>
);
};
const Liveboard = () => {
const embedRef = useEmbedRef<typeof LiveboardEmbed>();

const getFilters: MessageCallback = useCallback(() => {
embedRef.current.trigger(HostEvent.GetFilters).then(console.log);
}, []);

return (
<LiveboardEmbed
ref={embedRef}
liveboardId={ID}
onLiveboardRendered={getFilters}
/>
);
};
I also checked other HostEvents and I am getting the same error.
2 Replies
shikharTS
shikharTS5mo ago
The Let me try to repro this and provide a solution So I am getting the correct response when trying this out internally. A few things to check : 1. are the imports correct? These are the imports I am using :
import {
LiveboardEmbed,
SageEmbed,
AppEmbed,
SearchEmbed,
useEmbedRef,
MessageCallback,
HostEvent,
} from "@thoughtspot/visual-embed-sdk/react";
import { useCallback, useState } from "react";
import {
LiveboardEmbed,
SageEmbed,
AppEmbed,
SearchEmbed,
useEmbedRef,
MessageCallback,
HostEvent,
} from "@thoughtspot/visual-embed-sdk/react";
import { useCallback, useState } from "react";
2. Can you try upgrading to the latest SDK version? It is 1.33.3 3. Can we ensure the liveboardId is correct? I can be the case it is not being passed since you are facing this with every HostEvent 4. If it still does not work, can you provide you TS cluster version so that we can triage further? cc: @yuichirio_ha cc @Aditya
Adrian
AdrianOP5mo ago
I've got it sorted, thanks

Did you find this page helpful?