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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Power Bi Javascript Embed - Error event handler not firing on access token expiry

Hi,

My embeded report will fire errors for issues such as trying to load an incorrect page but it won't fire off an event when the access token has expired. I have seen this error get displayed in the past with a message such as below : 

`

message: "VisualErrorSeeDetails_TokenExpired_pivotTable"

`

When the token expires the subscribe api call fails - shouldn't the error event handler be picking that up? (POST https://wabi-north-europe-redirect.analysis.windows.net/powerbi/refresh/subscribe 401)

 

the event handler:

  report.on('error', (error=> {
                console.error(error);
                showDisplayError('Report error'error.message);
});

 

 

0 REPLIES 0

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors