Watchlist fails to load - "Invalid value provided for x-plex-container-size" error

I’m unable to load my Watchlist on Plex Web. When I try to access it, I get the generic error message “Something went wrong - An unexpected error occurred.”

Error Details:

When inspecting the network requests, I can see the following request is failing with a 400 Bad Request error:

GET https://discover.provider.plex.tv/library/sections/watchlist/all?includeAdvanced=1&includeMeta=1&X-Plex-Container-Start=0&X-Plex-Container-Size=50&…

The error response shows:

{“Error”: {“error”: “Bad Request”,“message”: “Invalid value provided for x-plex-container-size!”,“statusCode”: 400}}

What I’ve Tried:

  • Tested in both Firefox and Chrome - same issue in both

  • Cleared browser cache and cookies

  • Hard refresh (Ctrl+Shift+R)

  • Login/out

It appears the web app is sending X-Plex-Container-Size=50 but the discover API is rejecting this value. This seems like it might be a bug with the web app or possibly something specific to my account/watchlist.

Has anyone else experienced this issue? Any suggestions for workarounds?

Thanks!

Thanks, I’m following up on this.

Thanks, appreciate the quick response.

Checking the Plex subreddit, doesn’t seem widespread, but it would appear others are facing the same issue Reddit - The heart of the internet

I’m getting this too. Just started happening sometime today.

So from my understanding is that the client is trying to request too many items from the server with X-Plex-Container-Size=50. I was able to temporarily fix this by intercepting the HTTP requests and modify the X-Plex-Container-Size param to something smaller like X-Plex-Container-Size=10 (10) and it worked.

  1. Go to https://app.plex.tv/desktop and open devtools F12

  2. Paste the code below and hit Enter (you may have to allow pasting by typing “allow pasting” first)

  3. Click on “Watchlist” in the sidebar

Note: you will have to do this everytime you reload the plex page

var oldOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url) {
    if (url.indexOf('discover.provider.plex.tv/library/sections/watchlist') > -1) {
        url = url.replace(/X-Plex-Container-Size=\d+/g, 'X-Plex-Container-Size=10');
        console.log('changed request url:', url);
    }
    return oldOpen.apply(this, arguments);
};

var oldFetch = window.fetch;
window.fetch = function(url, options) {
    if (url && url.indexOf && url.indexOf('discover.provider.plex.tv/library/sections/watchlist') > -1) {
        url = url.replace(/X-Plex-Container-Size=\d+/g, 'X-Plex-Container-Size=10');
        console.log('changed fetch url:', url);
    }
    return oldFetch(url, options);
};

console.log('plex fix loaded');

Worth mentioning, I also wouldn’t go pasting random code someone sends you on the internet into devtools lol

But if you’re familiar with js and can verify the code above to be legit (which it is), then go for it.

The snippet of code doesn’t send data anywhere.

This should be resolved now.

1 Like

In the browser, it’s working. However, in the windows desktop app it still isn’t.

5 Likes

Still getting the same problem in the desktop app, and the ‘solution’ above is only a temporary one. Is this still being worked on?

2 Likes

Experience this issue with the MacOS Desktop App as well.

1 Like

broke in windows app for me

1 Like

Something went wrong
An unexpected error occurred.

on my watchlist

plex app win 10

on my tv,shield,web works ok

Same issue here. My windows app won’t display my watch list, but every other device and web browser does.

It’s funny, because I switched to a managed user profile on the windows app and that displayed the watch list just fine. But then I go back to my user profile and I still get the generic error message.

Same issue for me stated today!

Nothing changed

Using app….

Watchlist flashes up for 1/2 a second then error message - Something went wrong
An unexpected error occurred.

Win 10 - using google Plex Web Version 4.147.1 is ok!

Any more word on this? It’s clearly not resolved in the Desktop app on Windows or Linux.

same error on pc still as off dec 7, watchlist shows us for half second, then error, started happening 2 days ago too, 100% occurrence

Same exact error here. PC client watchlist not working

Fix required! drzoidberg33 - can you give us an update please?

This should be resolved now even for the desktop apps.

Thanks, finally working now with the windows app!

To be clear - it wasn’t when I posted. Is working now though.