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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Power Bi Embedding using a service principal error

I tried to embed my power bi reports using service prinicpal so using microsoft power bi developers sample code I embedded my report but i got this error 

Error Details:
HTTPSConnectionPool(host='api.powerbi.com', port=443): Max retries exceeded with url: /v1.0/myorg/groups/60a2f105-679d-4b55-8ac7-d69a2d479546/reports/85578574-e482-4f9e-86c4-f3a8e8f20943 (Caused by NameResolutionError(": Failed to resolve 'api.powerbi.com' ([Errno 11001] getaddrinfo failed)"))

 

Help me out .

@saud968@Arun@amitchandak

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Yeah I solved but that is due to few proxy restrictions in my system , for normal systems this error will not get .

here I shared microsoft Power bi Developers api code to embed your power bi reports in various programming languages to both your customers and organisation .
Thanks & Regards .

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

Have you solved your problem? If solved please mark the reply in this post which you think is helpful as a solution to help more others facing the same problem to find a solution quickly, thank you very much!

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Yeah I solved but that is due to few proxy restrictions in my system , for normal systems this error will not get .

here I shared microsoft Power bi Developers api code to embed your power bi reports in various programming languages to both your customers and organisation .
Thanks & Regards .
saud968
Super User
Super User

Try to check that 'api.powerbi.com' is the correct endpoint for the Power BI service.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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