jellyfin-archive / jellyfin-plugin-autoorganize

https://jellyfin.org
MIT License
41 stars 27 forks source link

Error processing request: value cannot be null, parameter 'g' - when correcting match #79

Open moeffju opened 2 years ago

moeffju commented 2 years ago

When I try to Auto Organize and it fails because it cannot identify the media, and I try to edit the result manually (using the pencil icon), I get the following error on submitting the form:

Jan 08 19:57:15 mediaserver jellyfin[233639]: [19:57:15] [ERR] Error processing request. URL POST /Library/FileOrganizations/c02cce3f04471059eaf25536f00cdb8d/Episode/Organize.
Jan 08 19:57:15 mediaserver jellyfin[233639]: System.Exception: Value cannot be null. (Parameter 'g')
Jan 08 19:57:15 mediaserver jellyfin[233639]:    at AutoOrganize.Core.FileOrganizationService.PerformOrganization(EpisodeFileOrganizationRequest request)

It doesn't matter whether I try with Movies or Series.

crobibero commented 2 years ago

What version are you using?

moeffju commented 2 years ago

Version 12.0.0.0 of the plugin.

From what I've googled this seems to point to a null GUID value somewhere, but I don't know how/why that would happen here as I'm trying to add an episode or movie that has no prior library references. It's also been happening since installation (back then with v10 of the plugin didn't do anything so I updated to v11).

moeffju commented 2 years ago

This is an example JSON request body:

{"SeriesId":null,
"SeasonNumber":"1",
"EpisodeNumber":"1",
"EndingEpisodeNumber":"2",
"RememberCorrection":false,
"NewSeriesProviderIds":{"Tmdb":"124579"},
"NewSeriesName":"Farscape: The Peacekeeper Wars",
"TargetFolder":"/srv/storage/Series"}
moeffju commented 2 years ago

In addition, as the server throws 500, the AutoOrganize frontend only throws up an error page saying "Error", with no content, and a button "Got it", which is not very helpful :D

moeffju commented 2 years ago

And as for Jellyfin I was using 10.7.7 at first, then updated to 10.8.0 alpha 3 to be able to use v11 of the autoorganize plugin, and now run 10.8.0alpha5. This issue has been around the entire time that the AutoOrganize plugin was otherwise working though (i.e. starting from v11 on Jellyfin 10.8.0-alpha3).

crobibero commented 2 years ago

I'm not sure how to use this plugin so I attempted to fix by just reading the code...

Hopefully https://github.com/jellyfin/jellyfin-plugin-autoorganize/pull/80 fixes it? I added the prebuilt plugin to the PR for testing