# HTTP Error Code 500 using JSON compiled source URL(s)

**URL:** <https://forums.plex.tv/t/http-error-code-500-using-json-compiled-source-url-s/170508>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [December 9, 2016, 10:56pm UTC](https://forums.plex.tv/t/http-error-code-500-using-json-compiled-source-url-s/170508 "2016-12-09T22:56:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xxNoxiouSxx](https://avatars.discourse-cdn.com/v4/letter/x/6a8cbe/32.png) [@xxNoxiouSxx](https://forums.plex.tv/u/xxNoxiouSxx)\
**Post date:** [December 9, 2016, 10:56pm UTC](https://forums.plex.tv/t/http-error-code-500-using-json-compiled-source-url-s/170508/1 "2016-12-09T22:56:00Z")

</div>

This is my first attempt at Python and plex plugin development.

I have the API working correctly and I compiled my URL from the JSON data. When I paste the url into a browser the stream starts playing immediately.

when I attempt to pass that back to my ObjectContainer I get HTTP 500 error in the Plex Plugin and the following in the log.

`DEBUG (services:618) - No matching services found for`

This happens for three of the links in my dict and then I get the following.

- The three links that says No matching service found for I paste them into chrome and it starts streaming so my URL works

`2016-12-09 16:41:46,831 (2a30) : CRITICAL (core:574) - Exception when constructing response (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bef33a\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-1bef33a\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-1bef33a\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-1bef33a\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-1bef33a\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-1bef33a\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\objectkit.py", line 580, in _to_xml if self._core.services.function_in_service_is_deferred(Framework.components.services.MEDIA_OBJECTS_FUNCTION_NAME, service): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bef33a\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\services.py", line 557, in function_in_service_is_deferred service.sandbox.context.import_values(values) AttributeError: 'NoneType' object has no attribute 'sandbox'`

I am using the following to add to my object container.

```
 page = get_link(3)
    for item in page:
        oc.add(VideoClipObject(
                url = item['url'],
                title = item['name'],
                summary = item['description'],
                thumb = item['thumb']
                ))

```

Been working on this all day and probably need to take a step back, but I thought I would at least post this to the community to see if anyone with more experience on plex development may be able to point out what I am missing.

---

<div class="post-metadata">

**Author:** ![xxNoxiouSxx](https://avatars.discourse-cdn.com/v4/letter/x/6a8cbe/32.png) [@xxNoxiouSxx](https://forums.plex.tv/u/xxNoxiouSxx)\
**Post date:** [December 10, 2016, 12:52am UTC](https://forums.plex.tv/t/http-error-code-500-using-json-compiled-source-url-s/170508/2 "2016-12-10T00:52:06Z")

</div>

Please disregard this post. I believe I answered my own question. I need to create a service for the URLs

---

<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:** [January 8, 2020, 8:00pm UTC](https://forums.plex.tv/t/http-error-code-500-using-json-compiled-source-url-s/170508/3 "2020-01-08T20:00:48Z")

</div>


