-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NRE from TMDB Cast/Crew when a 'TMDB Person' does not yet exist #1202
Comments
Are you able to provide logs & a stack trace so we can determine exactly where in the code it was happening? |
The exception w/ call stack is as follows:
Trying to find any other logs related to this person id in the past month... I can only find logs that match the below.
Looking again at my db, it appears my previous comments on there being no corresponding entries is not correct. I was attempting to find the TMDB IDs in the Shoko assigned ID column... In this case, it's only the lack of a corresponding |
As extra information... If all data for a TMDB show is explicitly purged ( Given that only the TMDB Person ID is presented when the exception is thrown, you'd have to either attach a debugger or go to the database to work out which show ID it is that needs fixing. A quick search of my logs indicate that I've had this error occur for 111 unique different person IDs. |
VERSION INFORMATION
Server Version: c24465c (current diff from
master
)DESCRIPTION
Shoko.Server.Models.TMDB.TMDB_Crew
&Shoko.Server.Models.TMDB.TMDB_Cast
will both throw an exception ifGetTmdbPerson
is called but cannot find a corresponding person.In turn,
Shoko.Server.API.v3.Models.Common.Role
is dependent upon these methods for the constructors taking TMDB data as a parameter, however does not account for the possibility of an exception being thrown.In practice, this becomes an issue when using an endpoint such as
/api/v3/Tmdb/Episode/{episodeID}
with the option to retrieve Cast/Crew (as Shokofin does). If for whatever reason, there is something saved inTMDB_Episode_Cast
, but no corresponding entries in theothertheTMDB
tablesTMDB_Person
table... a NRE occurs (which is currently a 'critical' issue in Shokofin's implementation, preventing the creation of a new library using the VFS).I've got no idea how my database ended up in the state it has done... But updating TMDB show info via the currently available Web UI actions does not end up resolving the issue.
I can make a copy of my SQLite DB at time of writing this issue available upon request.
STEPS TO REPRODUCE
Using a copy of my DB... Making the following request:
GET http://localhost:8111/api/v3/TMDB/Episode/5101834?include=Titles,Overviews,Images,CrossReferences,Cast,Crew,FileCrossReferences
The text was updated successfully, but these errors were encountered: