Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Server Error: 'types.SimpleNamespace' object has no attribute 'MediaContainer' #643

Open
erazemk opened this issue Feb 10, 2024 · 4 comments

Comments

@erazemk
Copy link

erazemk commented Feb 10, 2024

After setting up plex_debrid and adding some media to test it, I get a could not reach plex error, but after enabling debug printing, the actual error is an internal server error:

[10/02/24 12:05:10] Plex error: b'{"Error":{"error":"Internal Server Error","message":"An internal server error occurred","statusCode":500}}'
[10/02/24 12:05:10] [plex error]: (watchlist exception): 'types.SimpleNamespace' object has no attribute 'MediaContainer'
[10/02/24 12:05:10] [plex error]: could not reach plex

I couldn't find any references to this in the other issues, so I don't know what to make of it. Is this a known issue?

I do have quite a few items on the watchlist and Plex did throw an error when trying to add new ones, so it might be Plex-related, not plex_debrid's fault. Today I can't even add items to the watchlist, it's greyed out.

@itsToggle
Copy link
Owner

Hey, as you can probably tell by the amount of issues this project is currently poorly maintained.

It seems that Plex has removed the need for an argument that plex_debrid is using in its API calls, which will lead to this error (namely the "includeUserState=1" argument, which used to be passed in order to retrieve the watched/unwatched status of media items.

I might push an update to fix this specific bug, but I sadly do not have time for this project anymore. This was my very first python project and the code is so poorly written that it's become impossible to maintain. In the meanwhile check out other projects that sprung up since Plex_debrid (see the readme) :)

@CjIceMan
Copy link

Hey . Something is wrong I think , I get this message "[10/02/24 14:26:14] [plex error]: could not reach plex
[10/02/24 14:26:14] [plex] getting plex library section/s "Filme","Seriale" ... done'
"

On 2 different servers

@erazemk
Copy link
Author

erazemk commented Feb 10, 2024

@itsToggle Wow, for a first Python project this is pretty amazing, props to you. I briefly checked out Debrid Manager, but I didn't know that also works with watchlists, I'll take a better look, thanks.

Edit: It seems it doesn't automatically fetch media :(, so plex_debrid is still the most seamless option.

@CjIceMan Enable debug output, so that you can see the actual error, I also got this message, but the underlying error was more specific.

@AndyZaa
Copy link

AndyZaa commented Feb 10, 2024

Hi @itsToggle, I totally understand the pressures on your time. Just want to say thank you for a great utility. It's worked perfectly for me. I'll probably keep running it until it gives me any trouble. Thanks again, awesome job.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants