microsoft / powerbi-client-angular

Power BI Angular component. This library lets you embed Power BI report, dashboard, dashboard tile, report visual, or Q&A in your Angular application.
Other
135 stars 65 forks source link

ERROR Error: Invalid embed URL detected. Either URL hostname or protocol are invalid. Please use Power BI REST APIs to get the valid URL #60

Closed jitinpurwal closed 5 months ago

jitinpurwal commented 8 months ago

image

on second click ee.validateEmbedUrl return true and on first click it return false. this is inconsistent. please fix it

I am using powerbi-report-angular version 3.0.5

KotanaSai21 commented 8 months ago

This issue is with the powerbi-client package and it has been fixed in the latest version. Please override the version in package.json to powerbi-client: 2.23.1.

We're currently working on the Angular package and will try to release version soon with updating the package versions.

jitinpurwal commented 7 months ago

Hi, but i am using powerbi-client-angular 3.0.5. can i use powerbi-client: 2.23.1 instead of powerbi-client-angular 3.0.5. in my angular project?

KotanaSai21 commented 7 months ago

We need to override the version of powerbi-client package coming from the powerbi-client-angular. Check the below code to be included in package.json

 "powerbi-client-angular": "^3.0.5",
 "powerbi-client": "^2.23.1"

This should override the powerbi-client version and you should able to embed the report. Let me know if you still have any queries.