OneDrive / onedrive-api-docs

Official documentation for the OneDrive API
MIT License
447 stars 228 forks source link

Graph API drive endpoint doesn't give the correctly updated quota data #1791

Open woojou opened 2 months ago

woojou commented 2 months ago

Category

Expected or Desired Behavior

After I uploaded or deleted some files on OneDrive, then call "https://graph.microsoft.com/v1.0/me/drive", I should see the quota data was updated accordingly.

Observed Behavior

The "used" and "remaining" were not changed, but "deleted" was updated instantly.

Steps to Reproduce

I uploaded some files (in total 7MB) to my OneDrive, and then I call "https://graph.microsoft.com/v1.0/me/drive" to get the quota data and check if the "used" has been changed. But the "used" was kept as before.

And then I deleted a 22KB file, call "https://graph.microsoft.com/v1.0/me/drive" again, I can see the "deleted" changed instantly, but the "used" was still not updated.

Now, after 3 days, the "used" and "remaining" were still not changed.

Please help clarify why this happened, and is there any caching mechanism? Thank you.