Problem Statement: We have created a dashboard in QuickSight and are embedding 17 various visuals into our custom portal using the embedVisual
method of the amazon-quicksight-embedding-sdk
. However, we are facing issues during the embedding process. Specifically, we encounter errors while loading the embedded dashboard URL using an iframe.
Errors:
- Failed to load resource: the server responded with a status of 429
- aws Websocket onclose failed with code: 1006 reason: The connection was closed abnormally, e.g., without sending or receiving a Close control frame
These errors occur randomly for at least 3-4 visuals out of the 17. The visuals that fail to load are not consistent; it varies each time we attempt the embedding process.
Implementation Details:
- We generate embed URLs for all 17 visuals using the
generateEmbedUrlForRegisteredUser
method ofaws-sdk
. - We then use the
embedVisual
method ofamazon-quicksight-embedding-sdk
to load the embedded visual into an iframe.
Steps Taken:
- Generate embed URLs for all visuals.
- Load each visual in an iframe using the
embedVisual
method.
Questions:
- What could be causing these errors, and how can we resolve them to ensure all visuals load consistently?
- Are there any best practices or known limitations when embedding multiple visuals in a custom portal using the
amazon-quicksight-embedding-sdk
? - Is there a recommended approach to handle the 429 status error and the websocket onclose error code 1006 to prevent these issues?
Any insights or suggestions from the community would be greatly appreciated.
Thank you!