amazon-quicksight-embedding-sdk
amazon-quicksight-embedding-sdk copied to clipboard
INITIATE_PRINT timed out
This issue just started happening today (I was running the application and invoking the method without any issue yesterday - Dec 9, 2024).
Following the conventions to embed the dashboard:
const [
dashboardExperience,
setDashboardExperience,
] = useState<DashboardExperience | null>(null)
const printDashboard = useCallback(async () => {
console.log('Initiating Dashboard Print')
await dashboardExperience?.initiatePrint()
}, [dashboardExperience])
const frameOptions = {
//...
};
const contentOptions = {
//...
};
// Embedding a dashboard experience
const embeddedDashboardExperience = await embedDashboard(frameOptions, contentOptions);
setDashboardExperience(embeddedDashboardExperience);
useEffect(() => {
// Effect runs via the props `printInvoked` property from the parent container set via a print button
if (printInvoked) {
printDashboard()
}
}, [printDashboard, printInvoked])
Is there a check required (i.e. dashboard has finished loading, etc.) so that the initiatePrint() will only be called when it is valid to do so?
Are there any advise / insights on being handling the ErrorResponse returned by the initiatePrint method?