Skip to content

500 error on manual import for first-time movies (filterExistingFiles=true) #1

Description

@romquenin

Environment: Radarr 6.3.0.10514, servarr-auto-import 0.1.0 (Docker, dry-run)

The tool detects a blocked import correctly but fails to complete it for a movie that has never been imported before. Radarr returns a 500 error and the tool logs "no files returned".

Tool log:

[INFO] Radarr: processing 'VOYAGE.A.TOKYO.RESTAURATION.4K.VOSTFR.1080P.BLURAY.HEVC.FLAC-AZAZE.mkv'
[ERROR] HTTP 500 GET /api/v3/manualimport?folder=...&movieId=3146&filterExistingFiles=true
[WARNING] Radarr: no files returned for 'VOYAGE.A.TOKYO.RESTAURATION.4K.VOSTFR.1080P.BLURAY.HEVC.FLAC-AZAZE.mkv'

Radarr's error:

DirectoryNotFoundException: Could not find a part of the path '/movies/MOVIES/Tokyo Story (1953)'
  at ManualImportService.GetMediaFiles(Int32 movieId)

Likely cause: /movies/MOVIES/Tokyo Story (1953) is the movie's library folder, not the download folder. Since this is a first-time import, that folder doesn't exist yet — Radarr only creates it after a successful import. Passing filterExistingFiles=true together with movieId seems to make Radarr scan the (nonexistent) library folder instead of the download folder, causing the crash.

Suggested fix: Don't send filterExistingFiles=true for first-time imports, or retry with filterExistingFiles=false if the first call returns a 500.

To reproduce: Have a movie in Radarr with no file yet, let it get grabbed via ID-based matching (e.g. through Prowlarr), then let servarr-auto-import try to import it once downloaded.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions