Radarr / Radarr

Movie organizer/manager for usenet and torrent users.
https://radarr.video
GNU General Public License v3.0
10.26k stars 993 forks source link

Unable to Add New Movie Json error $.addOptions.monitor #7314

Closed Aerya closed 2 years ago

Aerya commented 2 years ago

Is there an existing issue for this?

Current Behavior

I can't add any movie.

Expected Behavior

Adding new movies.

Steps To Reproduce

Using latest Docker (linuxserver) Nightly.

{
  "$.addOptions.monitor": {
    "errors": [
      {
        "errorMessage": "The JSON value could not be converted to NzbDrone.Core.Movies.MonitorTypes. Path: $.addOptions.monitor | LineNumber: 0 | BytePositionInLine: 2079."
      }
    ],
    "validationState": "invalid",
    "isContainerNode": false
  }
}

Root folder is accessible from Radarr.

Environment

Docker
Version : 4.2.0.6316
Version du package : 4.2.0.6316-ls306 by linuxserver.io 
.NET : Yes (6.0.4)
Migration de la base de données : 208
Base de données : Sqlite 3.36.0
Dossier AppData : /config
Répertoire de démarrage : /app/radarr/bin

What branch are you running?

Nightly

Trace Logs?

022-05-29 09:25:35.6|Debug|Api|[GET] /api/v3/exclusions: 200.OK (11 ms)
2022-05-29 09:25:35.6|Debug|RootFolderService|Generating list of unmapped folders
2022-05-29 09:25:35.6|Debug|RootFolderService|65 unmapped folders detected.
2022-05-29 09:25:35.6|Trace|Http|Res: 490 [GET] /api/v3/rootFolder: 200.OK (35 ms)
2022-05-29 09:25:35.6|Debug|Api|[GET] /api/v3/rootFolder: 200.OK (35 ms)
2022-05-29 09:25:35.7|Trace|Http|Req: 495 [GET] /signalr/messages?access_token=(removed)&id=kJm-oKQiypyP5SuIPfL06g (from 141.*.*.14 Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0)
2022-05-29 09:25:35.8|Trace|Http|Req: 496 [GET] /api/v3/movie/lookup?term=tmdb%3A606856 (from 141.*.*.92 Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0)
2022-05-29 09:25:35.8|Debug|Parser|Parsing string 'tmdb:606856'
2022-05-29 09:25:35.8|Debug|Parser|Unable to parse tmdb:606856
2022-05-29 09:25:35.8|Trace|HttpClient|Req: [GET] https://api.radarr.video/v1/movie/606856
2022-05-29 09:25:35.9|Trace|HttpClient|Res: [GET] https://api.radarr.video/v1/movie/606856: 200.OK (36954 bytes) (90 ms)
2022-05-29 09:25:35.9|Trace|ConfigService|Using default config value for 'certificationcountry' defaultValue:'US'
2022-05-29 09:25:35.9|Trace|ConfigService|Using default config value for 'availabilitydelay' defaultValue:'0'
2022-05-29 09:25:35.9|Trace|Http|Res: 496 [GET] /api/v3/movie/lookup?term=tmdb%3A606856: 200.OK (106 ms)
2022-05-29 09:25:35.9|Debug|Api|[GET] /api/v3/movie/lookup?term=tmdb%3A606856: 200.OK (106 ms)
2022-05-29 09:25:38.2|Trace|Http|Req: 497 [POST] /api/v3/movie (from 141.*.*.92 Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0)
2022-05-29 09:25:38.2|Error|Radarr.Api.V3.Movies.MovieController.AddMovie (Radarr.Api.V3)|{
  "$.addOptions.monitor": {
    "errors": [
      {
        "errorMessage": "The JSON value could not be converted to NzbDrone.Core.Movies.MonitorTypes. Path: $.addOptions.monitor | LineNumber: 0 | BytePositionInLine: 2079."
      }
    ],
    "validationState": "invalid",
    "isContainerNode": false
  }
}
2022-05-29 09:25:38.2|Trace|Http|Res: 497 [POST] /api/v3/movie: 400.BadRequest (7 ms)
2022-05-29 09:25:38.2|Debug|Api|[POST] /api/v3/movie: 400.BadRequest (7 ms)
2022-05-29 09:25:46.6|Trace|Http|Req: 498 [POST] /api/v3/movie (from 141.*.*.92 Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0)
2022-05-29 09:25:46.6|Error|Radarr.Api.V3.Movies.MovieController.AddMovie (Radarr.Api.V3)|{
  "$.addOptions.monitor": {
    "errors": [
      {
        "errorMessage": "The JSON value could not be converted to NzbDrone.Core.Movies.MonitorTypes. Path: $.addOptions.monitor | LineNumber: 0 | BytePositionInLine: 2079."
      }
    ],
    "validationState": "invalid",
    "isContainerNode": false
  }
}
2022-05-29 09:25:46.6|Trace|Http|Res: 498 [POST] /api/v3/movie: 400.BadRequest (11 ms)
2022-05-29 09:25:46.6|Debug|Api|[POST] /api/v3/movie: 400.BadRequest (11 ms)
2022-05-29 09:25:46.6|Trace|Http|Req: 499 [GET] /api/v3/movie?apikey=(removed) (from 172.*.*.160 GuzzleHttp/7)
2022-05-29 09:25:46.6|Trace|ConfigService|Using default config value for 'availabilitydelay' defaultValue:'0'
2022-05-29 09:25:47.0|Trace|Http|Res: 499 [GET] /api/v3/movie?apikey=(removed) 200.OK (340 ms)
2022-05-29 09:25:47.0|Debug|Api|[GET] /api/v3/movie?apikey=(removed) 200.OK (340 ms)
2022-05-29 09:25:47.0|Trace|Scheduler|Pending Tasks: 0
2022-05-29 09:25:47.2|Trace|Http|Req: 500 [GET] /api/v3/movie?apikey=(removed) (from 172.*.*.67 GuzzleHttp/7)
2022-05-29 09:25:47.2|Trace|ConfigService|Using default config value for 'availabilitydelay' defaultValue:'0'
2022-05-29 09:25:47.4|Trace|Http|Req: 501 [GET] /api/v3/queue?apikey=(removed) (from 141.*.*.56 GuzzleHttp/7)
2022-05-29 09:25:47.4|Trace|Http|Res: 501 [GET] /api/v3/queue?apikey=(removed) 200.OK (2 ms)
2022-05-29 09:25:47.4|Debug|Api|[GET] /api/v3/queue?apikey=(removed) 200.OK (2 ms)
2022-05-29 09:25:47.4|Trace|Http|Req: 502 [POST] /api/v3/movie (from 141.*.*.92 Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0)
2022-05-29 09:25:47.4|Error|Radarr.Api.V3.Movies.MovieController.AddMovie (Radarr.Api.V3)|{
  "$.addOptions.monitor": {
    "errors": [
      {
        "errorMessage": "The JSON value could not be converted to NzbDrone.Core.Movies.MonitorTypes. Path: $.addOptions.monitor | LineNumber: 0 | BytePositionInLine: 2079."
      }
    ],
    "validationState": "invalid",
    "isContainerNode": false
  }
}
2022-05-29 09:25:47.4|Trace|Http|Res: 502 [POST] /api/v3/movie: 400.BadRequest (14 ms)
2022-05-29 09:25:47.4|Debug|Api|[POST] /api/v3/movie: 400.BadRequest (14 ms)
2022-05-29 09:25:47.6|Trace|Http|Res: 500 [GET] /api/v3/movie?apikey=(removed) 200.OK (370 ms)
2022-05-29 09:25:47.6|Debug|Api|[GET] /api/v3/movie?apikey=(removed) 200.OK (370 ms)
2022-05-29 09:25:47.9|Trace|Http|Req: 503 [GET] /api/v3/queue?apikey=(removed) (from 172.*.*.166 GuzzleHttp/7)
2022-05-29 09:25:47.9|Trace|Http|Res: 503 [GET] /api/v3/queue?apikey=(removed) 200.OK (2 ms)
2022-05-29 09:25:47.9|Debug|Api|[GET] /api/v3/queue?apikey=(removed) 200.OK (2 ms)
2022-05-29 09:25:48.0|Trace|Http|Req: 504 [POST] /api/v3/movie (from 141.*.*.92 Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0)
2022-05-29 09:25:48.0|Error|Radarr.Api.V3.Movies.MovieController.AddMovie (Radarr.Api.V3)|{
  "$.addOptions.monitor": {
    "errors": [
      {
        "errorMessage": "The JSON value could not be converted to NzbDrone.Core.Movies.MonitorTypes. Path: $.addOptions.monitor | LineNumber: 0 | BytePositionInLine: 2079."
      }
    ],
    "validationState": "invalid",
    "isContainerNode": false
  }
}
2022-05-29 09:25:48.0|Trace|Http|Res: 504 [POST] /api/v3/movie: 400.BadRequest (12 ms)
2022-05-29 09:25:48.0|Debug|Api|[POST] /api/v3/movie: 400.BadRequest (12 ms)
2022-05-29 09:25:48.2|Trace|Http|Req: 505 [POST] /api/v3/movie (from 141.*.*.92 Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0)
2022-05-29 09:25:48.2|Error|Radarr.Api.V3.Movies.MovieController.AddMovie (Radarr.Api.V3)|{
  "$.addOptions.monitor": {
    "errors": [
      {
        "errorMessage": "The JSON value could not be converted to NzbDrone.Core.Movies.MonitorTypes. Path: $.addOptions.monitor | LineNumber: 0 | BytePositionInLine: 2079."
      }
    ],
    "validationState": "invalid",
    "isContainerNode": false
  }
}
2022-05-29 09:25:48.2|Trace|Http|Res: 505 [POST] /api/v3/movie: 400.BadRequest (20 ms)
2022-05-29 09:25:48.2|Debug|Api|[POST] /api/v3/movie: 400.BadRequest (20 ms)
2022-05-29 09:25:48.4|Trace|Http|Req: 506 [POST] /api/v3/movie (from 141.*.*.92 Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0)
2022-05-29 09:25:48.4|Error|Radarr.Api.V3.Movies.MovieController.AddMovie (Radarr.Api.V3)|{
  "$.addOptions.monitor": {
    "errors": [
      {
        "errorMessage": "The JSON value could not be converted to NzbDrone.Core.Movies.MonitorTypes. Path: $.addOptions.monitor | LineNumber: 0 | BytePositionInLine: 2079."
      }
    ],
    "validationState": "invalid",
    "isContainerNode": false
  }
}
2022-05-29 09:25:48.4|Trace|Http|Res: 506 [POST] /api/v3/movie: 400.BadRequest (18 ms)
2022-05-29 09:25:48.4|Debug|Api|[POST] /api/v3/movie: 400.BadRequest (18 ms)
2022-05-29 09:25:48.6|Trace|Http|Req: 507 [POST] /api/v3/movie (from 141.*.*.92 Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0)
2022-05-29 09:25:48.6|Error|Radarr.Api.V3.Movies.MovieController.AddMovie (Radarr.Api.V3)|{
  "$.addOptions.monitor": {
    "errors": [
      {
        "errorMessage": "The JSON value could not be converted to NzbDrone.Core.Movies.MonitorTypes. Path: $.addOptions.monitor | LineNumber: 0 | BytePositionInLine: 2079."
      }
    ],
    "validationState": "invalid",
    "isContainerNode": false
  }
}
2022-05-29 09:25:48.6|Trace|Http|Res: 507 [POST] /api/v3/movie: 400.BadRequest (6 ms)
2022-05-29 09:25:48.6|Debug|Api|[POST] /api/v3/movie: 400.BadRequest (6 ms)
2022-05-29 09:25:48.8|Trace|Http|Req: 508 [POST] /api/v3/movie (from 141.*.*.92 Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0)
2022-05-29 09:25:48.8|Error|Radarr.Api.V3.Movies.MovieController.AddMovie (Radarr.Api.V3)|{
  "$.addOptions.monitor": {
    "errors": [
      {
        "errorMessage": "The JSON value could not be converted to NzbDrone.Core.Movies.MonitorTypes. Path: $.addOptions.monitor | LineNumber: 0 | BytePositionInLine: 2079."
      }
    ],
    "validationState": "invalid",
    "isContainerNode": false
  }
}
2022-05-29 09:25:48.8|Trace|Http|Res: 508 [POST] /api/v3/movie: 400.BadRequest (18 ms)
2022-05-29 09:25:48.8|Debug|Api|[POST] /api/v3/movie: 400.BadRequest (18 ms)
2022-05-29 09:25:49.0|Trace|Http|Req: 509 [POST] /api/v3/movie (from 141.*.*.92 Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0)
2022-05-29 09:25:49.0|Error|Radarr.Api.V3.Movies.MovieController.AddMovie (Radarr.Api.V3)|{
  "$.addOptions.monitor": {
    "errors": [
      {
        "errorMessage": "The JSON value could not be converted to NzbDrone.Core.Movies.MonitorTypes. Path: $.addOptions.monitor | LineNumber: 0 | BytePositionInLine: 2079."
      }
    ],
    "validationState": "invalid",
    "isContainerNode": false
  }
}
2022-05-29 09:25:49.0|Trace|Http|Res: 509 [POST] /api/v3/movie: 400.BadRequest (17 ms)
2022-05-29 09:25:49.0|Debug|Api|[POST] /api/v3/movie: 400.BadRequest (17 ms)
2022-05-29 09:25:49.2|Trace|Http|Req: 510 [POST] /api/v3/movie (from 141.*.*.92 Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0)
2022-05-29 09:25:49.2|Error|Radarr.Api.V3.Movies.MovieController.AddMovie (Radarr.Api.V3)|{
  "$.addOptions.monitor": {
    "errors": [
      {
        "errorMessage": "The JSON value could not be converted to NzbDrone.Core.Movies.MonitorTypes. Path: $.addOptions.monitor | LineNumber: 0 | BytePositionInLine: 2079."
      }
    ],
    "validationState": "invalid",
    "isContainerNode": false
  }
}
2022-05-29 09:25:49.2|Trace|Http|Res: 510 [POST] /api/v3/movie: 400.BadRequest (17 ms)
2022-05-29 09:25:49.2|Debug|Api|[POST] /api/v3/movie: 400.BadRequest (17 ms)
2022-05-29 09:26:04.1|Trace|Http|Req: 511 [GET] /api/v3/movie?apikey=(removed) (from 172.*.*.160 GuzzleHttp/7)
2022-05-29 09:26:04.1|Trace|ConfigService|Using default config value for 'availabilitydelay' defaultValue:'0'
2022-05-29 09:26:04.5|Trace|Http|Res: 511 [GET] /api/v3/movie?apikey=(removed) 200.OK (346 ms)

AB#3198

casperse commented 2 years ago

I think I have the same problem after update: errorMessage": "The JSON value could not be converted to NzbDrone.Core.Movies.MonitorTypes. Path: $.addOptions.monitor | LineNumber: 0 | BytePositionInLine: 1926." }

casperse commented 2 years ago

Any help on which version works when doing a rooll back to an the older version? linuxserver/radarr: sofar I get errors when doing roll back, maybe help to find out when/how this error was introduced :-)

RobinDadswell commented 2 years ago

You cannot roll back from the latest nightly due to database migrations with the new collections view without restoring a backup

tagg7 commented 2 years ago

I'm seeing the same issue unfortunately. Unable to add any new movies.

bakerboy448 commented 2 years ago

Toggle your monitoring option.

What is selected/stored in your browser local storage is invalid.

tagg7 commented 2 years ago

Toggle your monitoring option.

What is selected/stored in your browser local storage is invalid.

Good call, that was it!

casperse commented 2 years ago

I did a delete all cache and all cockies etc on my browser before reporting the error How to perform this Toggle your monitoring option?

bakerboy448 commented 2 years ago

Cache and cookies wouldn't do it. That setting is persisted in the local storage for your radarr site.

What do you mean how do you toggle the monitoring option? You select a different monitoring option when adding a movie.

Aerya commented 2 years ago

Thanks @bakerboy448 but it's more a workaround than a solution atm. But that does the job.

It's doesn't work adding a movie and monitoring Movie only.

But it's ok when monitoring Movie and Collection

bakerboy448 commented 2 years ago

Reopening

two bugs it seems

@Aerya logs for movie only not working? Can't reproduce

Aerya commented 2 years ago

Upgraded to Version 4.2.0.6318. Works fine now. Thank you!

:)

bakerboy448 commented 2 years ago

4.2.0.6320

second attempt; https://github.com/Radarr/Radarr/commit/63dde3eb89b7808f8e881c2a9f5022a30f5bab5a

still not yet fixed

{
  "addMovie": {
    "defaults": {
      "rootFolderPath": "/media/Movies",
      "monitor": "true",
      "qualityProfileId": 12,
      "minimumAvailability": "announced",
      "searchForMovie": false,
      "tags": []
    }
  },
bakerboy448 commented 2 years ago

Also impacts library import https://www.reddit.com/r/radarr/comments/v1bzli/cant_add_or_import_new_movies_without_also/?utm_source=share&utm_medium=ios_app&utm_name=iossmf