Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Error when calling report.load, "accessToken is required" #26

Closed
mattmazzola opened this issue Sep 13, 2016 · 0 comments
Closed

Error when calling report.load, "accessToken is required" #26

mattmazzola opened this issue Sep 13, 2016 · 0 comments
Assignees
Labels

Comments

@mattmazzola
Copy link
Member

In the EmbedSample

The current code is using both a direct call of powerbi.embed() before the DOMContentLoaded event and an indirect call using powerbi.init() after DOMContentLoaded.

The second call through powerbi.init() will internally cause call to embedExisting since there is a report already embedded in the element which then requires the configuration to be passed explicitly. This defaults to an empty object which does not have an accessToken and this fails validation.

image

@mattmazzola mattmazzola self-assigned this Sep 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant