plex-api.rs icon indicating copy to clipboard operation
plex-api.rs copied to clipboard

Server console reporting missing HTTP headers

Open Mossop opened this issue 2 years ago • 2 comments

While watching the server logs while querying some data I saw a number of the following lines:

Missing X-Plex-Container-Size header. This will fail with status code 400 in the future

This was while requesting the contents of collections, so the request paths were something like /library/collections/161/children.

Mossop avatar Jun 28 '23 00:06 Mossop

Wow, I'm surprised Plex's doing this! I wasn't sure about their policy regarding 3rd-party apps.

Thanks for flagging it!

worried-networking avatar Jun 28 '23 07:06 worried-networking

Looks like this has been being logged for nearly a year so who knows if its warning will ever come true!

Looks like the solution is to pass X-Plex-Container-Start: <index> and X-Plex-Container-Size: <count> to control pagination.

Mossop avatar Jun 28 '23 14:06 Mossop