SonosOneDriveServer icon indicating copy to clipboard operation
SonosOneDriveServer copied to clipboard

Does the OneDrive API limit the size of lists?

Open DavidSabine opened this issue 3 months ago • 3 comments

Hi,

I love this project. I've used it for a couple of years. A change occurred about a year ago, when suddenly I wasn't able to browse any of my Music folders beyond the letter "D" (see image)

I believe, but haven't proven yet, that the OneDrive API introduced a size limit on lists. I believe this is a problem for anyone with more than a few hundred songs in their OneDrive music library.

I intend to study the code in this project to find where the query occurs - but would appreciate if anyone can confirm this behaviour in the API?

Image

DavidSabine avatar Sep 15 '25 14:09 DavidSabine

According to Microsoft's docs, here: https://learn.microsoft.com/en-us/graph/api/driveitem-list-children?view=graph-rest-1.0&amp%3Btabs=http&tabs=http#response

"If a collection exceeds the default page size (200 items), the @odata.nextLink property is returned in the response to indicate more items are available and provide the request URL for the next page of items."

Is that limit affecting this project?

DavidSabine avatar Sep 15 '25 14:09 DavidSabine

Hi @DavidSabine , thanks for filing the issue and also already investigating the docs.

The code includes support for the nextLink property that is referenced in the documentation, however it's possible that something has changed wither in the OneDrive implementation or on the Sonos side, since I haven't updated the code in a few years.

It looks like you are hitting it with folders? I assume it also exists for folders with a lot of songs? Also based on where it stops, does it look to be at about 200 items, or some other number?

bertique avatar Sep 15 '25 18:09 bertique

From the first folder to "Dave Matthews Band" folder, Windows Explorer counts 100 items.

Image

DavidSabine avatar Sep 15 '25 20:09 DavidSabine