amazon-quicksight-embedding-sdk: Dashboard not working with v2 sdk

I tried switching from a working embedded dashboard using the 1.20.1 sdk to use the new 2.0.1 sdk but the dashboard fails to completely render (some of the menus appear but not the sheet contents) and I get multiple errors in the browser.

e.g. in the browser (up to date chrome and firefox)

error message: "Could not get json from element: page-config" from platform-libs.bundle.2677a5cb271e2ffed854.39.js:2 getJSONFromElement

Exception: embeddingControl.cf5a7a64f29fb881a868.39.js:2 Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin '' in a call to 'postMessage'

Also source maps are not working as the hosting domain is not resolving DevTools failed to load source map: Could not load content for https://sourcemaps.prod.us-east-1.quicksight.aws.a2z.com/charting/1.0.13932.0/esm/252.bundle.f40e4d4f02a96d99.2.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 17 (6 by maintainers)

Most upvoted comments

v2.0 started using window.document.referrer, and it requires the default strict-origin-when-cross-origin Referrer-Policy. As a first step, we will update the README to reflect this behavior change. We will also look into if we can ease this requirement.

Should this issue be closed given the README has not been updated? as another developer may run into this issue?

Glad to hear your issue is resolved. And thank you for your suggestions.

Version 2.0 captures invalid container in onChange event handler as INVALID_CONTAINER and throws an error.

E.g.

Uncaught (in promise) Error: Invalid container '#experience-containerrrrr' for the experience

I tested the starting with number case. An error is thrown, but it was not handled by the SDK.

E.g.

Uncaught (in promise) DOMException: Failed to execute 'querySelector' on 'Document': '2experience-container' is not a valid selector.

We are looking into capturing this case also. Thank you again.