# plexconnect xml error

**URL:** https://forums.plex.tv/t/plexconnect-xml-error/48847
**Category:** Apps & Creations
**Created:** [December 6, 2013, 12:14am UTC](https://forums.plex.tv/t/plexconnect-xml-error/48847 "2013-12-06T00:14:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![raduma](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@raduma](https://forums.plex.tv/u/raduma)
#### Post date: [December 6, 2013, 12:14am UTC](https://forums.plex.tv/t/plexconnect-xml-error/48847/1 "2013-12-06T00:14:10Z")

</div>

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:

&nbsp;

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

&nbsp;

&nbsp; &nbsp; {{ADDXML(RecentlyAired::newest?X-Plex-Container-Start=0&X-Plex-Container-Siz

e=40)}}

&nbsp; &nbsp; {{ADDXML(RecentlyAdded::recentlyAdded?stack=1&X-Plex-Container-Start=0&X-Ple

x-Container-Size=40)}}

&nbsp; &nbsp; {{ADDXML(RecentlyViewedEpisodes::recentlyViewed?X-Plex-Container-Start=0&X-P

lex-Container-Size=40)}}

&nbsp;

&nbsp;

Traceback (most recent call last):

&nbsp; File "C:\plexconnect\XMLConverter.py", line 495, in XML\_ExpandNode

&nbsp; &nbsp; res = getattr(g\_CommandCollection, 'TREE\_'+cmd)(elem, child, src, srcXML, pa

ram)

&nbsp; File "C:\plexconnect\XMLConverter.py", line 831, in TREE\_ADDXML

&nbsp; &nbsp; self.PMSroot[tag] = PMS.getroot() &nbsp;# store additional PMS XML

AttributeError: 'bool' object has no attribute 'getroot'

&nbsp;

16:08:17 PlexAPI: Error loading response XML from Plex Media Server

16:08:17 XMLConverter: XML\_ExpandNode - Error in cmd ADDXML, line

&nbsp;

&nbsp;

&nbsp;

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.

&nbsp;

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.

---

<div class="post-metadata">

### Author: ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)
#### Post date: [December 6, 2013, 6:36am UTC](https://forums.plex.tv/t/plexconnect-xml-error/48847/2 "2013-12-06T06:36:55Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![raduma](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@raduma](https://forums.plex.tv/u/raduma)
#### Post date: [December 6, 2013, 9:23pm UTC](https://forums.plex.tv/t/plexconnect-xml-error/48847/3 "2013-12-06T21:23:40Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)
#### Post date: [December 6, 2013, 9:44pm UTC](https://forums.plex.tv/t/plexconnect-xml-error/48847/4 "2013-12-06T21:44:56Z")

</div>

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

---

<div class="post-metadata">

### Author: ![bornslacker](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bornslacker/32/164896_2.png) [@bornslacker](https://forums.plex.tv/u/bornslacker)
#### Post date: [December 9, 2013, 11:21pm UTC](https://forums.plex.tv/t/plexconnect-xml-error/48847/5 "2013-12-09T23:21:04Z")

</div>

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
```

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [December 21, 2019, 12:37am UTC](https://forums.plex.tv/t/plexconnect-xml-error/48847/6 "2019-12-21T00:37:57Z")

</div>

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