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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JaiminV29
New Member

Power BI Embed in react timeout issue!

In my React js application , I have installed the Power Bi Embed (powerbi-client-react - ^1.3.3) for the purpose of dynamic report generation and from my begining I am facing a problem in which : [ The report gets timed out in few minutes and to surprise , this is repeated in random format ]. Can I get help to increase my time out period in my Power Bi Reports ?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @JaiminV29 

It may effect by your token, you can adjust the token lifetime, use the token lifetime policy and Assign policy to a service principal to configure the expiretime up to 24 hours, you can refer to the following link:

https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-...

https://community.powerbi.com/t5/Developer/Access-token-setting-expiration-times/td-p/215696

And you can refer to the following link about the code of embedding Power BI in react:

GitHub - microsoft/powerbi-client-react: Power BI for React which provides components and services t...

easily embed Power BI reports into their applications.

The following link may can help you set the token lifetime

Extend the expiration time of Power BI report embe... - Microsoft Power BI Community

 

Best Regards!

Yolo Zhu

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

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @JaiminV29 

It may effect by your token, you can adjust the token lifetime, use the token lifetime policy and Assign policy to a service principal to configure the expiretime up to 24 hours, you can refer to the following link:

https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-...

https://community.powerbi.com/t5/Developer/Access-token-setting-expiration-times/td-p/215696

And you can refer to the following link about the code of embedding Power BI in react:

GitHub - microsoft/powerbi-client-react: Power BI for React which provides components and services t...

easily embed Power BI reports into their applications.

The following link may can help you set the token lifetime

Extend the expiration time of Power BI report embe... - Microsoft Power BI Community

 

Best Regards!

Yolo Zhu

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

 

JaiminV29
New Member

JaiminV29_0-1672814535290.png

Here you can see screen shot for same.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.