causefx / Organizr

HTPC/Homelab Services Organizer - Written in PHP
GNU General Public License v3.0
5.12k stars 290 forks source link

My socks are empty :( #1520

Closed angrycuban13 closed 3 years ago

angrycuban13 commented 3 years ago

When adding a series via LunaSea using the SOCKS address https://domain.com/api/v2/socks/sonarr and the correct API key, Sonarr will receive an empty response and not add the series. The error on Sonarr logs look as follows:

API Error: BadRequest: Request body can't be empty

Sonarr.Http.REST.BadRequestException: BadRequest: Request body can't be empty
  at Sonarr.Http.REST.RestModule`1[TResource].ReadResourceFromRequest (System.Boolean skipValidate, System.Boolean skipSharedValidate) [0x000ec] in M:\BuildAgent\work\63739567f01dbcc2\src\Sonarr.Http\REST\RestModule.cs:241 
  at Sonarr.Http.REST.RestModule`1[TResource].<set_CreateResource>b__42_0 (System.Object options) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\Sonarr.Http\REST\RestModule.cs:168 
  at Nancy.NancyModule+<>c__DisplayClass38_0`1[T].<Post>b__0 (System.Object args) [0x00047] in <e31b230dbd29407fadcc55713e0bbd0f>:0 
  at Nancy.NancyModule+<>c__DisplayClass40_0`1[T].<Post>b__0 (System.Object args, System.Threading.CancellationToken ct) [0x00047] in <e31b230dbd29407fadcc55713e0bbd0f>:0 
  at Nancy.Routing.Route`1[T].Invoke (Nancy.DynamicDictionary parameters, System.Threading.CancellationToken cancellationToken) [0x00017] in <e31b230dbd29407fadcc55713e0bbd0f>:0 
  at Nancy.Routing.DefaultRouteInvoker.Invoke (Nancy.Routing.Route route, System.Threading.CancellationToken cancellationToken, Nancy.DynamicDictionary parameters, Nancy.NancyContext context) [0x00086] in <e31b230dbd29407fadcc55713e0bbd0f>:0 
  at Nancy.Routing.DefaultRequestDispatcher.Dispatch (Nancy.NancyContext context, System.Threading.CancellationToken cancellationToken) [0x002b7] in <e31b230dbd29407fadcc55713e0bbd0f>:0 
  at Nancy.NancyEngine.InvokeRequestLifeCycle (Nancy.NancyContext context, System.Threading.CancellationToken cancellationToken, Nancy.Bootstrapper.IPipelines pipelines) [0x0011d] in <e31b230dbd29407fadcc55713e0bbd0f>:0 

The SOCKS authentication is set to Guest.

The "bug" can't be replicated using the Organizr Token or using a direct local connection via http://hostname:8989/sonarr

causefx commented 3 years ago

lemme check sonarr api

angrycuban13 commented 3 years ago

This is still happening :(