Forum Discussion
embedded-expiration/timeout issue?
wabreza I just called the embed site guy (I'm the powerbi guy) and he says "every time a new menu item is called, I load a new page and a new token." So, I don't think that's the same iFrame in this sense.
And using the JavaScript SDK...
Thanks for patience on this...
wabreza Are we out of pursuable options as you think about this? I'm not sure how we'd pursue/fix conflicts in the shared state. Do I need to put in a ticket of some sort? Tom
- ThomasDay8 years agoImpactful Individual
arujindal Actually I never got an answer from the forum. I did get to the Microsoft person who built the github code for embedding V1. (You'll notice this is quite an old post). The end of this story was that there is a php command in the embedding code we used that sets the timeout period and it's measured in seconds not minutes, so turns out se had set the timeout to 60 instead of 3600 for a one hour timeout period.
I really don't know how the sharepoint embedding works, but that's what did it for us.
Hope that helps,
Tom
- wabreza10 years agoMicrosoft Employee
Can you put together a small sample app that reproduces the problem? I haven't been able to reproduce your issue locally.
- ThomasDay9 years agoImpactful Individual
wabreza In the interim--I thought a short video of the failure would be helpful to the community and perhaps allow you to get further along in deciphering what is happening when our site "fails" when inactive for a short while (3-5 minutes). To recap, each report loaded from a menu gets it's own page and token and the timeout period is set to 1 hour. We are embedding using Javascript in wordpress. Jesse will post the embedding code on git hub to benefit the opensource community that is embedding powerbi models. Here is a link to the video in dropbox which I've set to share for 7 days. Hopefully you'll get a flavor for what's happening and can perhaps direct us to more inquiry or a path to eliminate our issue. Tom
PS: there are no report level filters--all slicers/filters are contained on a page. Not that it matters...the x's appear for report level filtered pages as well.
- ThomasDay9 years agoImpactful Individual
wabreza finally, here is the embedding code on github. The `getEmbedTokens` method makes it look as though maybe we’re reusing tokens--we thought about that as an option at one point, but we don’t save tokens across requests, so in reality the way it works out is that a new token is generated for each request. We should probably pull that out for the sake of clarity. You'll most likely want to look at the `includes/powerbi.inc` file