-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 Internal Server Error
when fetching Plex Watchlist using RSS
#161
Comments
500 Internal Server Error
when fetching Plex Watchlist using RSS
Yeah I'm seeing this issue too on Watchlistarr, but when I try to copy the same request I make into Postman I don't get a 500 error... Odd |
Annoyingly after turning on debug logs, the error disappeared and now I can't replicate it... Did it get fixed for you too? |
@nylonee Same thing happened here. I messed around with some things. I went into my Plex Account settings -> went to watchlist settings -> deleted the active watchlist url -> restarted my docker watchlistarr containers. After doing that, watchlistarr seemed to start working, and I started to get the 500 Internal errors again after the first poll got the requests successfully. My working theory right now is that they've started rate limiting the RSS feeds and are sending 500 Internal Errors now for repeated requests to the same Plex Watchlist RSS URLs. |
I can confirm that the 500 error does not show in the logs. However, watchlistarr is not functioning and nothing is sent to any of the arrs. When I restart the container and it does its initial token sync it works. Afterwords, the rss sync is not adding anything. There is nothing in the logs to provide more insight. |
Did some relevant experimentations: Deleted the previous "bad" Plex Watchlist RSS URL, restarted the watchlistarr docker containers, and bumped the time interval for fetching the watchlists from 10 seconds -> 1 minute, and then 10 seconds -> 10 minutes. Both times, the first request was obviously accepted, and the watchlist was fetched, but the second time, I got a If Plex did indeed purposefully setup ratelimitting on Watchlist RSS urls, then I don't know what they've set the intervals to. Probably something more than 10 minutes (maybe somewhere between 20 - 60?) Someone else would need to experiment to be able to say for sure, but this change from Plex seems like it pretty much breaks the goal of Watchlistarr, unfortunately. |
Could I get one of you to try this curl command, but with your own plex RSS URL pasted in?
I wrote a mini script to hit this URL 10 times per second and let it run for 5 minutes, and I didn't get the 500 error even once, so I think it's only happening for some ids? Odd |
@nylonee The situation is a bit complex. Here's my understanding: Once a new Plex Watchlist RSS URL is generated for your account, you should be able to get Plex Watchlist items. BUT if you query that URL really frequently, then the first few times you MIGHT see You can try this out for yourself too. Try using your miniscript for a Plex Watchlist RSS URL. Then, add a new Plex Watchlist item and use the same URL you were using. I bet you won't see the new Plex Watchlist item show up in your query results. My understanding is that at first, it will give you 500 Internal Server errors if you try to query the URL too much, but eventually, it stops even trying to fetch new results, and it just automatically returns the cached results to you. My guess would be that eventually, after a certain amount of time once the rate limit has passed, it will stop giving you cached results and give you the actual results, but I'm not sure about this. |
You're onto something here, I added an item to my plex watchlist, it's been a few minutes but it's still not showing up on the RSS feeds? I think Plex has added a caching layer to the request. And this layer is probably 500 error-ing out It might be worth waiting until the weekday to see if Plex can fix this issue on their side |
Yeah, I think that's a good idea. It could be the case that with the new developmental changes that they pushed (that you noticed), they added this caching mechanism but there's some bugs in it. |
@nylonee Did a bit more testing.
EDIT: I looked more into the code for Watchlistarr, and it seems like the |
For your first point, yes you are right, watchlistarr does a full sync on the first run. The Boolean configuration for that is defined here. I'm thinking as a temporary workaround I can allow the 'token' sync to run every 20 minutes, instead of just on first startup. The token sync is crazy expensive, for me for instance it takes 3 minutes to run and fetch all the data it needs from Plex. |
Bonjour tout le monde j'ai regardé de mon côté, je suis sous unraid avec un container plex et watchlistarr et j'ai bien l'erreur Internal 500, j'ai comparé les logs de plex, l'ajout des films RSS et watchlistarr et j'ai remarqué de mon côté que le flux RSS de plex est en retard de 2 heures par rapport à tout ( je suis a la bonne heure sur mon bios, unraid, plex ... ) Ce qui pourrait expliquer le problème de synchronisation, j'ai pallier le problème en lançant un script qui redémarre mon container Watchlistarr toute les 5 mn et la aucun problème. Et de ce fait pas besoin de plex pass. Hello everyone, I looked on my side, I am under unraid with a plex and watchlistarr container and I have the Internal 500 error, I compared the plex logs, added the RSS and watchlistarr films and I noticed for my part that the plex RSS feed is 2 hours late compared to everything (I am at the right time on my bios, unraid, plex...) Which could explain the synchronization problem , I solved the problem by launching a script which restarts my Watchlistarr container every 5 minutes and no problem. And therefore no need for a plex pass. |
Thanks @seb20137, I've looked at the progress on the Plex side and it doesn't look like they've done much in the past day. I'll get to implementing a hotfix so that people don't need to restart Watchlistarr to get a full sync happening. This will be in a few parts:
|
Part 1 is done here: #165 |
Part 2 is done here: #166 |
I've bumped the I'll give it a try for a day or so and if there are no issues then I'll make a release |
Just started playing with watchlistarr today - there appears to be a fairly long server-side cache set up for RSS feeds on Plex's end, possibly unintentionally. It looks like 10 minutes at least before the cache expires. Meaning the program doesn't pick up new entries added to your watchlist for at least 10 minutes now. This sort of defeats the purpose of the watchlistarr - I might as well just keep using Overseerr with its 20-minute updates. As a trick, you can add random parameters to the end of the RSS URL to get it to bypass the cache (ex: ?12345 or ?arg=56789) but I don't know if Plex is going to appreciate that. |
It's been reported by multiple users that there's been a new error that's been showing up when using watchlistarr:
I've also been running into this issue as well. When I open the link that's logged in my browser, I can see the watchlist perfectly fine, but it's not working in watchlistarr..
The text was updated successfully, but these errors were encountered: