Jump to content
chef

ANSWERED /Shows/{SeriesId}/Episodes Endpoint issue

Recommended Posts

chef

Hey guys,

 

Anyone else experiencing issues with the

"/Shows/{SeriesId}/Episodes" 

endpoint in the API?

Whenever I attempt to acquire data, it returns:

Object reference not set to an instance of an object.

I assume the return is a list of episode base item data.

Yes I have made sure to add the SeriesId value to the Swagger to test it. 

It will always return the reference error :)

Share this post


Link to post
Share on other sites
Luke

Hi, server log?

  • Like 1

Share this post


Link to post
Share on other sites
Happy2Play

I get good results, but tested on current beta

 

api.thumb.jpg.3563aad92d7422ce96f0377ae359f4db.jpg

Share this post


Link to post
Share on other sites
chef
Posted (edited)

Thanks for the reply :)

I've attached some images of my results in the swagger, as well as a server log.

 

When adding an Episode ID into the required "SeriesId" input the response is:

Series not found

The reference error only seems to happen with an actual Internal SeriesId for me.

 

 

 

episodeApi1.png

episodeApi2.png

episodeApi3.png

embyserver.zip

Edited by chef

Share this post


Link to post
Share on other sites
chef
Posted (edited)

I ran a couple more tests on the endpoint this morning  just to make sure it wasn't the swagger acting weird.

These are the results I encountered :)

 

 

episodeApi4.png

episodeApi5.png

Edited by chef

Share this post


Link to post
Share on other sites
PenkethBoy

I just tried this on the beta server .20 and like H2P can pull back episodes fine using that endpoint

Have not got a working stable server to test against

Which plugin is causing the error prior to the 500 - looks like its causing the browser to choke and maybe thats related to your problem

I assume you have tried a reboot and clearing your browser cache etc etc

  • Like 1

Share this post


Link to post
Share on other sites
ebr

Are you providing a userID?

Share this post


Link to post
Share on other sites
chef

Hey PenkethBoy, it was a plugin I whipped together this morning to test the episode endpoint.

 

Some one on the forum had data lost, and asked if there was a quick way to list missing episode and collection data in the data base.

I whipped up a plugin that was going to list out missing data quickly, but encountered this issue will episode data returning the reference error.

It wasn't a pressing issue.

 

 

Share this post


Link to post
Share on other sites
chef
1 minute ago, ebr said:

Are you providing a userID?

No, I'll test this now. It wasn't marked as required in the swagger, so it hadn't occured to me.

Share this post


Link to post
Share on other sites
chef

Thank you @ebr that was the issue. The swagger is now returning data. 

Share this post


Link to post
Share on other sites
chef

Interesting, 

1. I have removed an episode of the Twilight Zone for testing purposes.

2. Run a library scan so the item is indeed missing

3. Requested data from the endpoint, which returns all the data for all the episodes, but counts the missing episode, as if the item is in the library. But, there doesn't seem to be a label which marks it as a missing item.

I am wondering if using the ItemService is a better option. 

My hopes was to have the item flagged, but another way would be to put all the episode numbers into an array and find the missing number as well. As long as there is an actual count for how many episodes where actually released for the season in question.

 

Share this post


Link to post
Share on other sites
PenkethBoy
Posted (edited)

IIRC there is a "flag" isvirtual=False or similar that will ignore missing or virtual episodes(for appearing on the upcoming tab)

will also depend if user has "show missing episodes" enabled

[edit]

IsMissing=False

Edited by PenkethBoy
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...