Carlos López
05/15/2026, 6:25 PMHostEvent.UpdateFilters where the Liveboard Embed component trigger the onLoad event - the response of the trigger always throw and error `"No answer found." but seconds later the filter chips is updated.Answer Overflow
05/15/2026, 6:25 PMspotter-code
05/15/2026, 6:25 PMspotter-code
05/15/2026, 6:25 PMHostEvent.UpdateFilters is fully ready.
HostEvent.UpdateFilters is documented as updating an existing Liveboard filter. If triggered too early (even inside onLoad), it can throw "No answer found." while the async filter update still applies moments later.
So your observation (error first, chips update seconds later) is consistent with that behavior.
### What to change
1. Keep using HostEvent.UpdateFilters, but don’t fire it immediately at first load tick.
2. Gate the call:
- either with a small retry/backoff when "No answer found." appears,
- or trigger only after the first stable post-load state in your app lifecycle.
3. Ensure the target filter already exists on the Liveboard (UpdateFilters updates existing chips).
js
import {
init,
AuthType,
LiveboardEmbed,
HostEvent,
EmbedEvent,
} from "@thoughtspot/visual-embed-sdk";
init({
thoughtSpotHost: "https://your-ts-host",
authType: AuthType.None,
});
const liveboard = new LiveboardEmbed("#ts-embed", {
liveboardId: "YOUR_LIVEBOARD_ID",
});
liveboard.on(EmbedEvent.Load, async () => {
const payload = {
filter: {
column: "date",
oper: "EQ",
values: ["JULY", "2023"],
type: "MONTH_YEAR",
},
};
const maxAttempts = 5;
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
try {
await liveboard.trigger(HostEvent.UpdateFilters, payload);
console.log("Filter updated");
break;
} catch (e) {
const msg = String(e?.message || e);
if (!msg.includes("No answer found.") || attempt === maxAttempts) {
console.error("UpdateFilters failed:", e);
break;
}
await new Promise((r) => setTimeout(r, 300 * attempt)); // backoff
}
}
});
liveboard.render();Carlos López
05/15/2026, 6:28 PMRuchi Anand
05/20/2026, 6:45 AMCarlos López
05/21/2026, 2:21 PMonError event when trigger the HostEvent.UpdateFiltersRuchi Anand
05/22/2026, 11:14 AMCarlos López
06/18/2026, 3:18 AM