Maximum data size changed for XML.ElementFromString?

Has there been a change to the maximum data size accepted by the XML.ElementFromString in some recent PMS update? I'm now receiving the below exception when trying to read-in an XML-file with a size bit over 7MB. The limit now seems to be ~5MB.

 

This used to work nicely previously. And if someone is asking why such a large file size, it's a DVD Profiler collection file holding all my movies and I'm using the DVDP2Plex meta data importer.

 

If there isn't any particular reason to limit this, it would be nice to have the maximum set to a really large value (eg. 50MB). 

2013-03-02 09:33:29,194 (1078) :  ERROR (logkit:22) - 
2013-03-02 09:33:29,196 (1078) :  ERROR (logkit:22) - (2103, 'Data of size 7237753 is greater than the maximum size 5242880')

That almost sounds like a GET or POST limit to me (in terms of the actual web transaction).  I don't have anything further to add or good suggestions for a workaround though, sorry.

The size check was introduced a few versions ago - some rogue service code was occasionally trying to parse large MP4 files as XML, bringing our server to its' knees. The default limit is 5MB, but you can override by passing a max_size argument to XML.ElementFromURL.

Thank you for this, worked perfectly. Would be perfect if the api documentation (http://dev.plexapp.com/docs/api/parsekit.html) was updated but fully understand the difficulty of keeping up with the changes.

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