# Invalid ratingKey errors

**URL:** <https://forums.plex.tv/t/invalid-ratingkey-errors/170348>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [December 8, 2016, 10:28pm UTC](https://forums.plex.tv/t/invalid-ratingkey-errors/170348 "2016-12-08T22:28:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomasagray](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@tomasagray](https://forums.plex.tv/u/tomasagray)\
**Post date:** [December 8, 2016, 10:28pm UTC](https://forums.plex.tv/t/invalid-ratingkey-errors/170348/1 "2016-12-08T22:28:30Z")

</div>

All of a sudden, my channel stopped working. None of the videos in it will play, but every other part of the channel functions. I made some changes to the website my channel uses, but I don’t think I changed anything with my channel code, so I’m a little stumped. The errors I’m getting are:  
`Dec 08, 2016 14:23:40.544 [0x7f4575bff700] ERROR - get - invalid ratingKey value: http://###.###.###.###/<path>/<filename>.mkv`

Here’s my `CreateVideoClipObject` function:

```
#####################################################################################################################
# Create the VideoClipObject with key and rating_key
@route(PREFIX + '/createvideoclipobject')
def CreateVideoClipObject(match_id, title, url, files, match_date, duration, art, thumb, include_container=False, *args, **kwargs):

  video_object = VideoClipObject(
    key=Callback(CreateVideoClipObject, match_id=match_id, title=title, url=url, files=files, match_date=match_date, duration=duration, art=art, thumb=thumb, include_container=True),
    title=title,
	rating_key=url,
    items=GetMediaObject(files, match_id),
	originally_available_at=datetime.strptime (match_date, '%Y-%m-%d').date(),
	duration=int(duration)*1000,
	summary=GetSummary(match_date),
    art=Resource.ContentsOfURLWithFallback(url=art),
    thumb=Resource.ContentsOfURLWithFallback(url=thumb)
  )
	
  if include_container:
    return ObjectContainer(objects=[video_object])
		
  else:
    return video_object

```

Did something change upstream? Thanks for any tips.

---

<div class="post-metadata">

**Author:** ![tchit](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tchit/32/219289_2.png) [@tchit](https://forums.plex.tv/u/tchit)\
**Post date:** [April 10, 2017, 4:57pm UTC](https://forums.plex.tv/t/invalid-ratingkey-errors/170348/2 "2017-04-10T16:57:00Z")

</div>

Same problem after upgrading Plex from 0.8 to 1.4.3

---

<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/invalid-ratingkey-errors/170348/3 "2020-01-08T20:00:45Z")

</div>


