ngovil21 / RequestChannel.bundle

Request Channel - A Plex Channel to create requests
159 stars 22 forks source link

Manage CoachPotato link doesn't work but can add too it fine? #76

Open CharlesW2506 opened 6 years ago

CharlesW2506 commented 6 years ago

As per the title, the 'Manage CoachPotato' link in the channel doesn't work but I can add too CP fine? Error shown is "The is channel is not responding".

I did post about this in the Plex Forums but had no reply (last month), here's the details:

I can add a request for a movie and send to Coachpotato fine (so know I have the basic config. set ok) ? In the channels log I see this (replaced my actual server details and api with SERVER & API respectively btw):

2017-12-17 09:20:54,736 (4464) : DEBUG (networking:166) - Requesting 'http://SERVER:5050/api/API/movie.list/' 2017-12-17 09:21:02,786 (4464) : CRITICAL (core:574) - Exception when constructing response (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-f54242b6b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 951, in construct_response el = result._to_xml() File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-f54242b6b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\objectkit.py", line 667, in _to_xml el = Framework.modelling.objects.ModelInterfaceObjectContainer._to_xml(self) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-f54242b6b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\objects.py", line 382, in _to_xml root = Container._to_xml(self) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-f54242b6b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\objects.py", line 139, in _to_xml self._append_children(root, self._objects) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-f54242b6b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\objects.py", line 145, in _append_children el = obj._to_xml() File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-f54242b6b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\objectkit.py", line 545, in _to_xml raise Framework.exceptions.AttributeException('If no URL is provided, the key and rating_key attributes must be set.') AttributeException: If no URL is provided, the key and rating_key attributes must be set.

If I run the api call (ending /movie.list/) manually in my browser it seems to work fine with all the existing movies requested on my Coachpotato instance listed ?

Loving this Channel and the core functionality working great, but would be perfect if this worked also so I can monitor things added ok from within the channel, thanks,

ngovil21 commented 6 years ago

Doesn't look to be an error with your setup. I think one of the movies doesn't have an IMDB id, which is causing the error. I'm posting a fix that will be included in the next release.

CharlesW2506 commented 6 years ago

OK great, nice spot :)