Skip to content

[BUG] Invalid URI: The format of the URI could not be determined - failed import radarr #1024

Description

@gianfelicevincenzo
[16:17:49 ERR] An unhandled exception has occurred while executing the request.
System.UriFormatException: Invalid URI: The format of the URI could not be determined.
   at System.Uri..ctor(String uriString)
   at MonoTorrent.MagnetLink.Parse(String uri) in C:\Projects\monotorrent\src\MonoTorrent.Client\MonoTorrent\MagnetLink.cs:line 95
   at RdtClient.Web.Controllers.TorrentsController.CheckFilesMagnet(TorrentControllerCheckFilesRequest request) in /appserver/server/RdtClient.Web/Controllers/TorrentsController.cs:line 234
   at lambda_method1229(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at RdtClient.Service.Middleware.RequestLoggingMiddleware.Invoke(HttpContext context) in /appserver/server/RdtClient.Service/Middleware/RequestLoggingMiddleware.cs:line 15
   at Program.<>c.<<<Main>$>b__0_14>d.MoveNext() in /appserver/server/RdtClient.Web/Program.cs:line 167
--- End of stack trace from previous location ---
   at RdtClient.Service.Middleware.AuthorizeMiddleware.Invoke(HttpContext context) in /appserver/server/RdtClient.Service/Middleware/AuthorizeMiddleware.cs:line 15
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
[16:17:49 ERR] An unhandled exception has occurred while executing the request.
System.UriFormatException: Invalid URI: The format of the URI could not be determined.
   at System.Uri..ctor(String uriString)
   at MonoTorrent.MagnetLink.Parse(String uri) in C:\Projects\monotorrent\src\MonoTorrent.Client\MonoTorrent\MagnetLink.cs:line 95
   at RdtClient.Web.Controllers.TorrentsController.CheckFilesMagnet(TorrentControllerCheckFilesRequest request) in /appserver/server/RdtClient.Web/Controllers/TorrentsController.cs:line 234
   at lambda_method1229(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at RdtClient.Service.Middleware.RequestLoggingMiddleware.Invoke(HttpContext context) in /appserver/server/RdtClient.Service/Middleware/RequestLoggingMiddleware.cs:line 15
   at Program.<>c.<<<Main>$>b__0_14>d.MoveNext() in /appserver/server/RdtClient.Web/Program.cs:line 167
--- End of stack trace from previous location ---
   at RdtClient.Service.Middleware.AuthorizeMiddleware.Invoke(HttpContext context) in /appserver/server/RdtClient.Service/Middleware/AuthorizeMiddleware.cs:line 15
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
[16:17:50 ERR] Invalid URI: The format of the URI could not be determined., trying to parse E8B8642C37D3D7E6F7D0540B7153A9E47379682F
System.UriFormatException: Invalid URI: The format of the URI could not be determined.
   at System.Uri..ctor(String uriString)
   at MonoTorrent.MagnetLink.Parse(String uri) in C:\Projects\monotorrent\src\MonoTorrent.Client\MonoTorrent\MagnetLink.cs:line 95
   at RdtClient.Service.Services.Torrents.AddMagnetToDebridQueue(String magnetLink, Torrent torrent) in /appserver/server/RdtClient.Service/Services/Torrents.cs:line 193
[16:17:50 ERR] An unhandled exception has occurred while executing the request.
System.Exception: Invalid URI: The format of the URI could not be determined., trying to parse E8B8642C37D3D7E6F7D0540B7153A9E47379682F
   at RdtClient.Service.Services.Torrents.AddMagnetToDebridQueue(String magnetLink, Torrent torrent) in /appserver/server/RdtClient.Service/Services/Torrents.cs:line 199
   at RdtClient.Web.Controllers.TorrentsController.UploadMagnet(TorrentControllerUploadMagnetRequest request) in /appserver/server/RdtClient.Web/Controllers/TorrentsController.cs:line 141
   at lambda_method1240(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at RdtClient.Service.Middleware.RequestLoggingMiddleware.Invoke(HttpContext context) in /appserver/server/RdtClient.Service/Middleware/RequestLoggingMiddleware.cs:line 15
   at Program.<>c.<<<Main>$>b__0_14>d.MoveNext() in /appserver/server/RdtClient.Web/Program.cs:line 167
--- End of stack trace from previous location ---
   at RdtClient.Service.Middleware.AuthorizeMiddleware.Invoke(HttpContext context) in /appserver/server/RdtClient.Service/Middleware/AuthorizeMiddleware.cs:line 15
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
[02:49:43 ERR] Download reported an error: The download was cancelled for download [BBF] Popeye The Slayer Man [WEB 1080p SUB ITA][36D161AF].mkv. Completed: 79%, avg speed: 8372043bytes/s (f12b83da-bf53-4d74-b5cc-24d8cbb78a65) remoteID: d25b6619-a2e6-4ea3-9cb4-d08d48c3d578 for torrent [BBF] Popeye The Slayer Man [WEB 1080p SUB ITA][36D161AF].mkv (654578740 - deleted 0%) (55e91505-6210-4013-9bf3-612f9cc7d04c)
[12:00:10 ERR] Download reported an error: The download was cancelled for download Hokum.2026.BDRemux.2160p.HDR.mkv. Completed: 77%, avg speed: 8372043bytes/s (44590c9a-7076-4fea-81d0-7f62c716c007) remoteID: 7c51d863-8ca6-44cc-9cc0-a4cee85b6544 for torrent Hokum.2026.BDRemux.2160p.HDR.mkv (655091521 - Ready 0%) (25b58231-0b42-41f4-ba4b-45bdbe9e83a6)
[17:57:25 ERR] Download reported an error: The download was cancelled for download Deleted Scenes.mkv. Completed: 83%, avg speed: 8372043bytes/s (8dfd0edf-4188-4c6d-9d6d-c6ad28a38004) remoteID: 285d614d-be7a-4949-abd6-1d32e5be3be4 for torrent Hell House LLC [2015] [Directors Cut] COMPLETE 1080p BDRip x265 DD 2.0 Kira [SEV] (655477486 - Ready 0%) (bdebac9c-07f0-4e87-9dbc-93d1b4bd1a61)
[17:57:25 ERR] Download reported an error: The download was cancelled for download Behind the Scenes.mkv. Completed: 64%, avg speed: 8372043bytes/s (cb6492d0-9d80-44a1-a891-18fc9fd59a39) remoteID: 28dec06c-736c-48e4-89f3-862774cd0b29 for torrent Hell House LLC [2015] [Directors Cut] COMPLETE 1080p BDRip x265 DD 2.0 Kira [SEV] (655477486 - Ready 0%) (bdebac9c-07f0-4e87-9dbc-93d1b4bd1a61)
[18:00:38 ERR] Download reported an error: The download was cancelled for download Deleted Scenes.mkv. Completed: 31%, avg speed: 8372043bytes/s (f2e474b2-79fd-44f5-b74d-430d693f485b) remoteID: 79a8294b-b84c-4ee6-b000-ba1e8423b182 for torrent Hell House LLC [2015] [Directors Cut] COMPLETE 1080p BDRip x265 DD 2.0 Kira [SEV] (655477486 - Ready 0%) (fe1f3e51-bc7e-4a0d-84bc-ecca658d197d)

Update: I encountered this error when trying to import media. I checked more closely and found that the files were indeed downloaded, but not imported into Radarr. Furthermore, the logs indicate that the downloads were deleted, which is absolutely not the case.

[12:00:10 ERR] Download reported an error: The download was cancelled for download Hokum.2026.BDRemux.2160p.HDR.mkv. Completed: 77%, avg speed: 8372043bytes/s (44590c9a-7076-4fea-81d0-7f62c716c007) remoteID: 7c51d863-8ca6-44cc-9cc0-a4cee85b6544 for torrent Hokum.2026.BDRemux.2160p.HDR.mkv (655091521 - Ready 0%) (25b58231-0b42-41f4-ba4b-45bdbe9e83a6)
Image

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