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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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