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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.