I recently encountered a bug returning the item usage for 30 and 60 days (BUG-000154587) and posted about it here (Solved: The Usage property for an item returns None or Emp... - Esri Community). After switching my method to getting a dictionary response instead of a dataframe, I had success, and my script was working beautifully... for a week.
Then, I started encountering this issue last week where numerous items within ArcGIS Online started returning None. When I tried to troubleshoot, I couldn't reproduce the error when querying individual items separately. I was able to get the usage to return independently for several items that were returning None. I realized that the items that returned None were different each time I ran the main script. There was no pattern. Then I caught this when manually testing a random item:
In the top cell I did the usage query and it returned None. I waited 5 minutes and ran the same code in the bottom cell. I got a dictionary as expected. Why?
Solved! Go to Solution.
Any on details on the bug (is there a way to search for bug reports by id number)?
I found your original thread first with the dictionary workaround, but it sounds like there is no workaround for this bug since the behavior is not repeatable?