# "Internal Server Error" when requesting plugin data from PMS

**URL:** <https://forums.plex.tv/t/internal-server-error-when-requesting-plugin-data-from-pms/33732>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [May 2, 2013, 7:48pm UTC](https://forums.plex.tv/t/internal-server-error-when-requesting-plugin-data-from-pms/33732 "2013-05-02T19:48:15Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [May 2, 2013, 7:48pm UTC](https://forums.plex.tv/t/internal-server-error-when-requesting-plugin-data-from-pms/33732/1 "2013-05-02T19:48:15Z")

</div>

Hello!

Using python I am trying to get nice XML files from PMS- basically building a small-scale client. Starting [http://ADDR:32400](http://ADDR:32400) does work reasonable well... but when parsing through the plugin section, it breaks.

&nbsp;

The details:

Using Safari requesting the final media URL (basically the last "key") I get a nice XML file like...

&nbsp;

&nbsp;

\<MediaContainer&nbsp;size="1"&nbsp;identifier="com.plexapp.system"&nbsp;mediaTagPrefix="/system/bundle/media/flags/"&nbsp;mediaTagVersion="1365532643"\>

&nbsp;\<Video&nbsp;...

&nbsp; &nbsp;\<Media&nbsp;...

&nbsp; &nbsp; &nbsp;\<Part&nbsp;...

&nbsp; &nbsp; &nbsp; &nbsp;\<Stream&nbsp;...

&nbsp; &nbsp; &nbsp; &nbsp;\<Stream&nbsp;...

&nbsp; &nbsp; &nbsp;

&nbsp; &nbsp;

&nbsp;

&nbsp;

However, doing the getURL from python or even just with "curl --url " I get a "HTTP/1.0 500 Internal Server Error". The XML returned is just

\<?xml version='1.0' encoding='utf-8'?\>

&nbsp;

Does anybody know, what I might be missing?

---

<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:** [May 3, 2013, 7:08am UTC](https://forums.plex.tv/t/internal-server-error-when-requesting-plugin-data-from-pms/33732/2 "2013-05-03T07:08:48Z")

</div>

That was a strange one...

Erroneously in python I requested the upper level directory with a trailing '/' in the URL. This led to a bad "kwargs" attribute in the provided URL and kill the PMS response in the end :-(

It's fixed now...

---

<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 20, 2019, 11:18pm UTC](https://forums.plex.tv/t/internal-server-error-when-requesting-plugin-data-from-pms/33732/3 "2019-12-20T23:18:24Z")

</div>

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