Forum Discussion
Angular App Freezes on Power BI API Call (get reports in group)After Access Token Retrieval
The thing is this exact same code was working 2 days ago and i was able to see the report list in my app and in the Chrome console i could see the list of reports and the individual pages as well in the sidebar. But now in the exact same code after a couple of days , the API call isnt going out and the code just freezes after getting the token and nothing renders in the sidebar.I am 100% sure there is no problem with the code syntax but something is blocking me from making the API request . Requesting your help and any would be appreciated . Also my PowerBi license type is Premium per user .Here is a SS of how my app looks with the sidebar that has the list of reports that I get from hitting the Get reports in Group API and then based on the link i click that particular page renders in the div :
- Anonymous2 years agoNot applicable
Hi, IsgBi
According to you, the first few days worked fine, so we have the following solution:
1.First, check whether the API rate limit and token expire:
The Power BI API has rate limits to prevent overuse of resources. You can check out Power BI's rate limiting documentation to learn about the specific limits1. If you exceed these limits, Power BI returns HTTP status code 429 (Too Many Requests) and includes a Retry-After HTTP header in the response indicating how many seconds you need to wait before you can make the request again.
Here's a screenshot of the documentation:
Here are the relevant documents:
Power BI REST APIs for embedded analytics and automation - Power BI REST API | Microsoft Learn
2.Second, confirm that you have sufficient permissions to access the Power BI APIs. Make sure your Azure AD application has the correct permissions.
3.Then, check to see if there is a proxy server or firewall blocking your request.
Here are the relevant documents:
Troubleshoot sign-in issues in Power BI Desktop - Power BI | Microsoft Learn
4.Finally, using Azure Log Analytics can help you view your activity logs for Power BI. You can configure Log Analytics to connect to your Power BI subscription to collect and analyze log data. This can help you determine if an API call is blocked or if there are other issues.
Using Azure Log Analytics in Power BI - Power BI | Microsoft Learn
Of course, if you have any new ideas, you are welcome to contact us.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.