lokenx / lokenx/plexrequests-meteor

Radarr Post Error

Open
#563 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
521
Forks
129
PR merge metrics
No merged PRs in 30d

Description

Hey guys-

Whenever a request is made, it looks like there are now incompatibilities with the latest version of Radarr.

The request is added to Plex Requests, but never gets to Radarr. When reviewing the Admin logs it looks like:
`Post Error: failed [400] { "message": "BadRequest: Invalid request body. The JSON value could not be converted to System.Int32. Path: $.year | LineNumber: 0 | BytePositionInLine: 54.", "content": "Invalid request body. The JSON value could not be converted to System.Int32. Path: $.year | LineNumber: 0 | BytePositionInLine: 54." }`

When looking at the Radarr logs:
`2021-05-27 09:26:58.2|Info|RssSyncService|Starting RSS Sync
2021-05-27 09:27:00.8|Info|DownloadDecisionMaker|Processing 100 releases
2021-05-27 09:27:01.2|Info|RssSyncService|RSS Sync Completed. Reports found: 100, Reports grabbed: 0
2021-05-27 09:40:44.7|Warn|RadarrErrorPipeline|API Error:
BadRequest: Invalid request body. The JSON value could not be converted to System.Int32. Path: $.year | LineNumber: 0 | BytePositionInLine: 54.

[v3.2.0.5048] Radarr.Http.REST.BadRequestException: BadRequest: Invalid request body. The JSON value could not be converted to System.Int32. Path: $.year | LineNumber: 0 | BytePositionInLine: 54.
at Radarr.Http.REST.RestModule`1.ReadResourceFromRequest(Boolean skipValidate, Boolean skipSharedValidate) in D:\a\1\s\src\Radarr.Http\REST\RestModule.cs:line 253
at Radarr.Http.REST.RestModule`1.b__43_0(Object options) in D:\a\1\s\src\Radarr.Http\REST\RestModule.cs:line 206
at Nancy.NancyModule.<>c__DisplayClass38_0`1.b__0(Object args)
at Nancy.NancyModule.<>c__DisplayClass40_0`1.b__0(Object args, CancellationToken ct)
at Nancy.Routing.Route`1.Invoke(DynamicDictionary parameters, CancellationToken cancellationToken)
at Nancy.Routing.DefaultRouteInvoker.Invoke(Route route, CancellationToken cancellationToken, DynamicDictionary parameters, NancyContext context)
at Nancy.Routing.DefaultRequestDispatcher.Dispatch(NancyContext context, CancellationToken cancellationToken)
at Nancy.NancyEngine.InvokeRequestLifeCycle(NancyContext context, CancellationToken cancellationToken, IPipelines pipelines)`

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no project files, tests, or entry points. Start by reproducing the request to Radarr v3.2 and inspecting the JSON sent for the year field; done means requests are accepted by Radarr and reach the intended workflow without the 400 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.