Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ammarb
Frequent Visitor

Embedding report error

Hello all ,

 

 I'm having a powerBi pro licence also , I'm in the middle of embedding report in my wordpress website so I've used this plugin https://wordpress.org/plugins/embed-power-bi/

 

also in testing with Microsoft Power BI Embedded Playground .. it's working

But I'm getting this error    DOMException: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 'Bearer <br />

"....." is not a valid HTTP header field value. at setGETRequestHeaders

so how this could be solved ?

 

Thank you

7 REPLIES 7
h4n1234
Frequent Visitor

Hi - I am having the same issue. Only this is it works for 6 WordPress sites - I have built 2 more and I am getting the above message. 

v-shex-msft
Community Support
Community Support

Hi @Ammarb,

Have you tested your embed token and id on the playground or only test to embed the sample contents to WordPress?

If this is a case, I'd like to suggest you check azure account and permission settings to confirm if you do not meet for prerequisites.

power-bi-embedded wordpress 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
nickyvv
Community Champion
Community Champion

So it's not entirely clear from you question:
- Are you using Power BI Embedded (with a E-SKU license)
- Or are you Publishing to Web and then embedding in your site?


Did I answer your question? Mark my post as a solution!

Blog: nickyvv.com | @NickyvV


What do you mean by ( a E-SKU license)?

 

I only have a Power BI Pro license and I've given permission inside the Azure Active Directory
By creating a client secret ... etc

not the second option

HI @Ammarb,

According to your description, it seems like you only have a Pro license.

AFAIK, power bi embedded feature requires a premium license and corresponding azure permissions. (for sample report you test on power bi playground, they are shared from a premium tenant with corresponding permissions and tokens )

Embedded analytics with Power BI 

What is Power BI Embedded? 

Power BI Premium FAQ 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

@v-shex-msftThe API permissions are already granted as below s.JPG

 

Hi @Ammarb,

If your scenario suitable all prerequisites and still not works, it should related to backend verify requests. I'd like to suggest you open a support ticket for further support.

submit a support ticketsubmit a support ticket

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors