chef 3745 Posted August 21, 2020 Share Posted August 21, 2020 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 Link to comment Share on other sites More sharing options...
Luke 37057 Posted August 21, 2020 Share Posted August 21, 2020 Hi, server log? 1 Link to comment Share on other sites More sharing options...
Happy2Play 8281 Posted August 21, 2020 Share Posted August 21, 2020 I get good results, but tested on current beta Link to comment Share on other sites More sharing options...
chef 3745 Posted August 21, 2020 Author Share Posted August 21, 2020 (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. embyserver.zip Edited August 21, 2020 by chef Link to comment Share on other sites More sharing options...
chef 3745 Posted August 21, 2020 Author Share Posted August 21, 2020 (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 Edited August 21, 2020 by chef Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted August 21, 2020 Share Posted August 21, 2020 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 1 Link to comment Share on other sites More sharing options...
Solution ebr 14910 Posted August 21, 2020 Solution Share Posted August 21, 2020 Are you providing a userID? Link to comment Share on other sites More sharing options...
chef 3745 Posted August 21, 2020 Author Share Posted August 21, 2020 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. Link to comment Share on other sites More sharing options...
chef 3745 Posted August 21, 2020 Author Share Posted August 21, 2020 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. Link to comment Share on other sites More sharing options...
chef 3745 Posted August 21, 2020 Author Share Posted August 21, 2020 Thank you @ebr that was the issue. The swagger is now returning data. Link to comment Share on other sites More sharing options...
chef 3745 Posted August 21, 2020 Author Share Posted August 21, 2020 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. Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted August 21, 2020 Share Posted August 21, 2020 (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 August 21, 2020 by PenkethBoy 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now