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
SibinSivanandan
New Member

PowerBI Embed in Angular 7 gives ERR_SSL_PROTOCOL_ERROR

Hi I have Embed PowerBI in Angular Using an NPM library (ngx-powerbi)

 

Most of the times the implementation works as expected. However sometime it gives ERR_SSL_PROTOCOL_ERROR

 

PowerBI_SSL.JPG

 

 

I have added the code to initialize the PowerBI report in 

ngAfterViewInit() {
     this.powerBiService = new NgxPowerBiService();
     this.powerBIAccessToken = localStorage.getItem('PowerBIAadToken');
     this.pbiContainerElement = <HTMLElement>(document.getElementById('powerbi-container'));
     this.getReport();
 
getReport(embedToken) {
        this.config = {
            type: 'report',
            id: this.setting.reportId,
            tokenType: models.TokenType.Aad,
            embedUrl: this.setting.embedUrl,
            accessToken: embedToken,
            settings: {
                filterPaneEnabled: this.filterPaneEnabled,
                navContentPaneEnabled: this.navContentPaneEnabled
            }
        };

        this.report = this.powerBiService.embed(this.pbiContainerElement, this.config);
    }
 
In The Html I have:
"<div id="powerbi-container" class="power-bi-container"></div>"
 
0 REPLIES 0

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.