Hello,
I believe I’m getting the same issue when setting up a Plex Media Server to sonarr on the same machine.
I’ve attached the trace logs below.
17-7-28 11:37:57.8|Trace|Http|Req: 292 [POST] /api/notification/test
17-7-28 11:37:57.8|Debug|PlexServerService|Getting sections from Plex host: localhost
17-7-28 11:37:57.8|Debug|PlexServerProxy|Authentication Response:
17-7-28 11:37:57.8|Trace|PlexServerProxy|Checking for error
17-7-28 11:37:57.8|Trace|PlexServerProxy|No response body returned, no error detected
17-7-28 11:37:57.8|Error|PlexServerService|Unable to connect to Plex Server
[v2.0.0.4855] Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path ‘’, line 0, position 0.
at Newtonsoft.Json.Linq.JObject.Load (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x00026] in <1fa899c21f554672afbc630cc93b185e>:0
at Newtonsoft.Json.Linq.JObject.Parse (System.String json, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x0000c] in <1fa899c21f554672afbc630cc93b185e>:0
at Newtonsoft.Json.Linq.JObject.Parse (System.String json) [0x00000] in <1fa899c21f554672afbc630cc93b185e>:0
at NzbDrone.Core.Notifications.Plex.PlexServerProxy.Authenticate (NzbDrone.Core.Notifications.Plex.PlexServerSettings settings) [0x0004a] in <4f38a7d7a714405098278193b9697ec1>:0
at NzbDrone.Core.Notifications.Plex.PlexServerProxy+<>c__DisplayClass14_0.b__0 () [0x00000] in <4f38a7d7a714405098278193b9697ec1>:0
at NzbDrone.Common.Cache.Cached1[T].Get (System.String key, System.Func
1[TResult] function, System.Nullable`1[T] lifeTime) [0x0006a] in <953b74031cc24d85bc9f58633f142756>:0
at NzbDrone.Core.Notifications.Plex.PlexServerProxy.GetAuthenticationToken (NzbDrone.Core.Notifications.Plex.PlexServerSettings settings) [0x00035] in <4f38a7d7a714405098278193b9697ec1>:0
at NzbDrone.Core.Notifications.Plex.PlexServerProxy.GetPlexServerRequest (System.String resource, RestSharp.Method method, NzbDrone.Core.Notifications.Plex.PlexServerSettings settings) [0x00026] in <4f38a7d7a714405098278193b9697ec1>:0
at NzbDrone.Core.Notifications.Plex.PlexServerProxy.GetTvSections (NzbDrone.Core.Notifications.Plex.PlexServerSettings settings) [0x00000] in <4f38a7d7a714405098278193b9697ec1>:0
at NzbDrone.Core.Notifications.Plex.PlexServerService.GetSections (NzbDrone.Core.Notifications.Plex.PlexServerSettings settings) [0x00016] in <4f38a7d7a714405098278193b9697ec1>:0
at NzbDrone.Core.Notifications.Plex.PlexServerService.Test (NzbDrone.Core.Notifications.Plex.PlexServerSettings settings) [0x00000] in <4f38a7d7a714405098278193b9697ec1>:0
17-7-28 11:37:57.9|Trace|NzbDroneErrorPipeline|Handling Exception
17-7-28 11:37:57.9|Warn|NzbDroneErrorPipeline|Invalid request Validation failed:
– Unable to connect to Plex Server
17-7-28 11:37:57.9|Trace|Http|Res: 292 [POST] /api/notification/test: 400.BadRequest (47 ms)
17-7-28 11:37:57.9|Debug|Api|[POST] /api/notification/test: 400.BadRequest (47 ms)
I’ve attemped to debug for multiple days and I’m stumped! sonarr can connect successfully to deluge, which is also on the same server.
Running a telnet 127.0.0.1 32400 and telnet localhost 32400 works succesfully.
I see you mention that sonarr attempts to login to plex.tv. I’ve input my plex.tv account information correctly into the sonarr connect and no luck unfortunately. When testing on plex.tv the account information works correctly. I’ve attempted using the development version of sonarr and no luck as well. Interestingly, when attempting this using my colleagues sonarr installation, it can connect to the Plex Media Server with no issues.
I’m running sonarr on centos 7 using the centos 7 guide. Is it possible that the root of these issues could be coming from my installation of sonarr? My next testing steps are to install sonarr into a docker container.
(I’ve re-installed sonarr multiple times following each step of the centos 7 guide to the tee)
Thank you in advance for all the time you put into these support tickets, I see you answer almost everyone of them I’ve stumbled across when attempting to debug!