Forum Discussion
API activityevents randomly reporting 503 server unavailable?
Hello
We downloaded a power shell example, a few weeks ago, which downloads activities and other data, into Json files. I have amended the scripts slightly, so that the files go into a slightly different folder structure. Both scripts were running perfectly before I took a two-week holiday.
Now that I'm back, I cannot retrieve the activities for the last 30 days, because randomly (on different days), the call to admin/activityevents fails with a 503 server unavailable error. By different days I mean, sometimes it will successfully retrieve the data for 27 days and then report the 503. Other times it might only do four or five days, before failing.
Even the script, which I have not amended, is having the same issues. I don't really understand it, because it always processes some days before failing.
Any ideas?
2 Replies
- AnonymousNot applicable
Hi Dragon496 ,
Are you trying to run the REST API Admin - Get Activity Events? If yes, could you please check if you hit any of following limitations?
StartDateTimeandEndDateTimemust be in the same UTC day and should be wrapped in single quotes.- Maximum 200 requests per hour.
- Activity logging isn't supported for Microsoft Cloud Deutschland.
How to use Power BI Activity Events Rest API with Power Automate
Power BI Event Activity Log API – Easy way to get it!
Best Regards
- Dragon496Helper II
Hello
Yes that is the method.
While I appreciate your comments, I do not believe it is the first or third one, because as I said in my original post, each time I run my script, it processes some dates, before it fails. At the moment I am using the same dates (last 30 days).
Also, it is not a question of hitting the limit, as when I receive that error it is a different code (429).
I am not in Germany.
Thanks