plexconnect xml error

Sometime in the last week or so I ended up putting some old recordings in my plex library that are making plex connect barf a bit when its generating the XML to be served back. In the console, when loading up the TV on deck/recentely viewed sections I see:

 

16:07:56 WebServer: serving .xml: /library/sections/5
16:08:06 PlexAPI: Error loading response XML from Plex Media Server
16:08:06 XMLConverter: XML_ExpandNode - Error in cmd ADDXML, line
 
    {{ADDXML(RecentlyAired::newest?X-Plex-Container-Start=0&X-Plex-Container-Siz
e=40)}}
    {{ADDXML(RecentlyAdded::recentlyAdded?stack=1&X-Plex-Container-Start=0&X-Ple
x-Container-Size=40)}}
    {{ADDXML(RecentlyViewedEpisodes::recentlyViewed?X-Plex-Container-Start=0&X-P
lex-Container-Size=40)}}
 
 
Traceback (most recent call last):
  File "C:\plexconnect\XMLConverter.py", line 495, in XML_ExpandNode
    res = getattr(g_CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, pa
ram)
  File "C:\plexconnect\XMLConverter.py", line 831, in TREE_ADDXML
    self.PMSroot[tag] = PMS.getroot()  # store additional PMS XML
AttributeError: 'bool' object has no attribute 'getroot'
 
16:08:17 PlexAPI: Error loading response XML from Plex Media Server
16:08:17 XMLConverter: XML_ExpandNode - Error in cmd ADDXML, line
 
 
 
The result is that the On Deck and Recently Viewed book strips consist of a single gray unnamed invalid item. All the other sections are fine so the overall app is still usable, but it'd be nice if I knew how to fix it.
 
I'm not entirely sure which recordings caused this. I had a bunch of old shows I'd archived from my tivo for a years I'd dumped into Plex recentely, so I'm guessing it was one of those? They work fine when I try to play them, browse to them by show name, etc. Just these two sections are messed up.
With a browser on your PMS host, try browsing to...
127.0.0.1:32400/library/sections/5/newest?X-Plex-Container-Start=0&X-Plex-Container-Size=40
127.0.0.1:32400/library/sections/5/recentlyAdded?stack=1&X-Plex-Container-Start=0&X-Plex-Container-Size=40
127.0.0.1:32400/library/sections/5/recentlyViewed?X-Plex-Container-Start=0&X-Plex-Container-Size=40
One of those doesn't seem to return a good answer. Maybe this gives you a hint to the offending media?

Each of those seems to return legit xml :( At least the default XML parser in chrome parses it into the node tree correctly w/o any warnings.

Set loglevel to "High", restart PlexConnect, recreate the error and post a log... I will have a look.

I too am getting a similar error.

Only seems to happen in my TV Shows directory.

17:18:05 WebServer: serving .xml: /library/sections/2
17:18:15 PlexAPI: Error loading response XML from Plex Media Server
17:18:15 XMLConverter: XML_ExpandNode - Error in cmd ADDXML, line 
{{ADDXML(RecentlyAired::newest?X-Plex-Container-Start=0&X-Plex-Container-Size=40)}}
{{ADDXML(RecentlyAdded::recentlyAdded?stack=1&X-Plex-Container-Start=0&X-Plex-Container-Size=40)}}
{{ADDXML(RecentlyViewedEpisodes::recentlyViewed?X-Plex-Container-Start=0&X-Plex-Container-Size=40)}}

Traceback (most recent call last):
File “/Applications/PlexConnect/XMLConverter.py”, line 495, in XML_ExpandNode
res = getattr(g_CommandCollection, ‘TREE_’+cmd)(elem, child, src, srcXML, param)
File “/Applications/PlexConnect/XMLConverter.py”, line 831, in TREE_ADDXML
self.PMSroot[tag] = PMS.getroot() # store additional PMS XML
AttributeError: ‘bool’ object has no attribute ‘getroot’

17:18:26 PlexAPI: Error loading response XML from Plex Media Server
17:18:26 XMLConverter: XML_ExpandNode - Error in cmd ADDXML, line

Traceback (most recent call last):
File “/Applications/PlexConnect/XMLConverter.py”, line 495, in XML_ExpandNode
res = getattr(g_CommandCollection, ‘TREE_’+cmd)(elem, child, src, srcXML, param)
File “/Applications/PlexConnect/XMLConverter.py”, line 831, in TREE_ADDXML
self.PMSroot[tag] = PMS.getroot() # store additional PMS XML
AttributeError: ‘bool’ object has no attribute ‘getroot’

17:18:26 XMLConverter: XML_ExpandNode - Error in cmd CUT, line

Traceback (most recent call last):
File “/Applications/PlexConnect/XMLConverter.py”, line 495, in XML_ExpandNode
res = getattr(g_CommandCollection, ‘TREE_’+cmd)(elem, child, src, srcXML, param)
File “/Applications/PlexConnect/XMLConverter.py”, line 787, in TREE_CUT
key, leftover, dfltd = self.getKey(src, srcXML, param)
File “/Applications/PlexConnect/XMLConverter.py”, line 624, in getKey
el, srcXML, attrib = self.getBase(src, srcXML, attrib)
File “/Applications/PlexConnect/XMLConverter.py”, line 685, in getBase
src = self.PMSroot[srcXML]
KeyError: ‘OnDeck’

17:18:26 XMLConverter: XML_ExpandNode - Error in cmd CUT, line

Traceback (most recent call last):
File “/Applications/PlexConnect/XMLConverter.py”, line 495, in XML_ExpandNode
res = getattr(g_CommandCollection, ‘TREE_’+cmd)(elem, child, src, srcXML, param)
File “/Applications/PlexConnect/XMLConverter.py”, line 787, in TREE_CUT
key, leftover, dfltd = self.getKey(src, srcXML, param)
File “/Applications/PlexConnect/XMLConverter.py”, line 624, in getKey
el, srcXML, attrib = self.getBase(src, srcXML, attrib)
File “/Applications/PlexConnect/XMLConverter.py”, line 685, in getBase
src = self.PMSroot[srcXML]
KeyError: ‘OnDeck’

17:18:26 XMLConverter: XML_ExpandNode - Error in cmd COPY, line

Traceback (most recent call last):
File “/Applications/PlexConnect/XMLConverter.py”, line 495, in XML_ExpandNode
res = getattr(g_CommandCollection, ‘TREE_’+cmd)(elem, child, src, srcXML, param)
File “/Applications/PlexConnect/XMLConverter.py”, line 747, in TREE_COPY
src, srcXML, tag = self.getBase(src, srcXML, tag)
File “/Applications/PlexConnect/XMLConverter.py”, line 685, in getBase
src = self.PMSroot[srcXML]
KeyError: ‘OnDeck’

17:18:28 XMLConverter: XML_ExpandNode - Error in cmd CUT, line

Traceback (most recent call last):
File “/Applications/PlexConnect/XMLConverter.py”, line 495, in XML_ExpandNode
res = getattr(g_CommandCollection, ‘TREE_’+cmd)(elem, child, src, srcXML, param)
File “/Applications/PlexConnect/XMLConverter.py”, line 787, in TREE_CUT
key, leftover, dfltd = self.getKey(src, srcXML, param)
File “/Applications/PlexConnect/XMLConverter.py”, line 624, in getKey
el, srcXML, attrib = self.getBase(src, srcXML, attrib)
File “/Applications/PlexConnect/XMLConverter.py”, line 685, in getBase
src = self.PMSroot[srcXML]
KeyError: ‘RecentlyViewedEpisodes’

17:18:28 XMLConverter: XML_ExpandNode - Error in cmd CUT, line

Traceback (most recent call last):
File “/Applications/PlexConnect/XMLConverter.py”, line 495, in XML_ExpandNode
res = getattr(g_CommandCollection, ‘TREE_’+cmd)(elem, child, src, srcXML, param)
File “/Applications/PlexConnect/XMLConverter.py”, line 787, in TREE_CUT
key, leftover, dfltd = self.getKey(src, srcXML, param)
File “/Applications/PlexConnect/XMLConverter.py”, line 624, in getKey
el, srcXML, attrib = self.getBase(src, srcXML, attrib)
File “/Applications/PlexConnect/XMLConverter.py”, line 685, in getBase
src = self.PMSroot[srcXML]
KeyError: ‘RecentlyViewedEpisodes’

17:18:28 XMLConverter: XML_ExpandNode - Error in cmd COPY, line

Traceback (most recent call last):
File “/Applications/PlexConnect/XMLConverter.py”, line 495, in XML_ExpandNode
res = getattr(g_CommandCollection, ‘TREE_’+cmd)(elem, child, src, srcXML, param)
File “/Applications/PlexConnect/XMLConverter.py”, line 747, in TREE_COPY
src, srcXML, tag = self.getBase(src, srcXML, tag)
File “/Applications/PlexConnect/XMLConverter.py”, line 685, in getBase
src = self.PMSroot[srcXML]
KeyError: ‘RecentlyViewedEpisodes’

17:18:29 WebServer: serving /js/utils.js
17:18:29 WebServer: serving /js/scrobble.js

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.