Skip to content

Can't add Stephen King (hc:154441): ArgumentNullException in BookInfoProxy.MapEdition — "Value cannot be null (Parameter 'input')" #744

Done

Description

@wombatface

Description

Adding the author Stephen King (Hardcover hc:154441) always fails with HTTP 500:

System.ArgumentNullException: Value cannot be null. (Parameter 'input')
at BookInfoProxy.MapEdition (BookInfoProxy.cs:4920)

The author lookup finds him fine, but every add attempt fails before the author is saved, whether it's from the UI/API (POST /api/v1/author) or ChaptarrNG's own nightly import discovery (ImportOrchestratorV2 [DRAIN]/[DISCOVERY]). It has failed every night since Nov 25.

The stack shows MapAuthor → MapBook → MapEdition calling a Regex on a null string. That suggests at least one of King's Hardcover editions is missing a field (most likely the title), and a single bad edition crashes the whole author add instead of being skipped. Upstream Chaptarr has what looks like the same root cause, issue #276 ("one or more editions are missing Title", which lists End of Watch by Stephen King), but there it shows up as a rejected book rather than a crash. King's large catalog probably makes hitting a bad edition almost certain.

Expected: editions with missing fields are skipped or logged, and the author still gets added.

Side effect: the wrong "Stephen King" (hc:1126820, a different author whose Hardcover bio says "Distinct author. Please avoid merging with the well known Stephen King") was being re-added by a stuck pending author import, because the real one couldn't be added.

Version

ChaptarrNG 0.9.1032.0 (Docker image ghcr.io/snapetech-org/chaptarrng:latest). Newest release as of Nov 28, 2026.

Steps to Reproduce

  1. Settings → Metadata uses Hardcover (default).
  2. Add Author → search "Stephen King" → select Stephen King (hc:154441).
  3. Choose any root folders/profiles (tested with monitoring off) → Add.
  4. Result: HTTP 500 "Value cannot be null. (Parameter 'input')". The author isn't added.

Also reproduces via API: POST /api/v1/author with foreignAuthorId "hc:154441" fails the same way no matter which fields are sent.
Also reproduces automatically: with a "Stephen King" author folder on disk, every Rescan Folders run logs "[DISCOVERY] Parallel import failed for hc:154441" and "[DRAIN] Failed to add author 'Stephen King' (hc:154441)".

Screenshots

No response

Logs

2026-11-28T01:28:13Z ImportOrchestratorV2: [DRAIN] Failed to add author 'Stephen King' (hc:154441): Value cannot be null. (Parameter 'input')

System.ArgumentNullException: Value cannot be null. (Parameter 'input')
   at System.Text.RegularExpressions.ThrowHelper.ThrowArgumentNullException(ExceptionArgument arg)
   at NzbDrone.Core.MetadataSource.BookInfo.BookInfoProxy.MapEdition(BookResource resource, String provider, Boolean compatibility) in ./Chaptarr.Core/MetadataSource/BookInfo/BookInfoProxy.cs:line 4920
   at System.Linq.Enumerable.ListSelectIterator`2.ToList()
   at NzbDrone.Core.MetadataSource.BookInfo.BookInfoProxy.MapBook(WorkResource resource, Logger logger, String provider) in ./Chaptarr.Core/MetadataSource/BookInfo/BookInfoProxy.cs:line 4842
   at System.Linq.Enumerable.ListSelectIterator`2.ToList()
   at NzbDrone.Core.MetadataSource.BookInfo.BookInfoProxy.MapAuthor(AuthorResource resource, String provider) in ./Chaptarr.Core/MetadataSource/BookInfo/BookInfoProxy.cs:line 4689
   at NzbDrone.Core.MetadataSource.BookInfo.BookInfoProxy.MapNativeHardcoverAuthor(AuthorResource resource) in ./Chaptarr.Core/MetadataSource/BookInfo/BookInfoProxy.cs:line 4486
   at NzbDrone.Core.MetadataSource.BookInfo.BookInfoProxy.GetAuthorInfo(String foreignAuthorId, Boolean useCache, Boolean interactiveSearch) in ./Chaptarr.Core/MetadataSource/BookInfo/BookInfoProxy.cs:line 218
   at NzbDrone.Core.MetadataSource.BookInfo.BookInfoProxy.GetAuthorInfoAsync(String foreignAuthorId, Boolean useCache) in ./Chaptarr.Core/MetadataSource/BookInfo/BookInfoProxy.cs:line 290
   at NzbDrone.Core.Books.Services.AuthorLibraryService.FetchAuthorBlobAsync(String providerId) in ./Chaptarr.Core/Books/Services/AuthorLibraryService.cs:line 249
   at NzbDrone.Core.Books.Services.AuthorLibraryService.AddAuthorAsync(String providerId, MonitoringConfig config) in ./Chaptarr.Core/Books/Services/AuthorLibraryService.cs:line 280
   at NzbDrone.Core.MediaFiles.BookImport.ImportOrchestratorV2.DrainRemainingAsync(IngestQueueScanScope scanScope, RootFolder rootFolder) in ./Chaptarr.Core/MediaFiles/BookImport/ImportOrchestratorV2.cs:line 1126

The same exception occurs for POST /api/v1/author (logged by ChaptarrErrorPipeline as "Request Failed. POST /api/v1/author").

Platform

desktop

Database

SQLite (default)

Device

Synology NAS (server); accessed from a MacBook Pro

Operating System

Synology DSM 7 (Docker); client macOS

Browser

Brave

Additional Context

No response

Search Existing Issues

  • Yes, I have searched existing issues.

Code of Conduct

  • I agree to follow SeerrNG's Code of Conduct

Activity

  1. github-actions commented on Nov 28, 2026

    @github-actions

    Possible duplicate detected

    This issue may be a duplicate of the following (detected via semantic similarity + LLM review):

    A maintainer will review this. If this is not a duplicate, no action is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions