HELP - If I try to add anything, I just get a "Object reference not set to an instance of an object"


#1

Sonarr version (exact version): 3.0.1.351
Mono version (if Sonarr is not running on Windows): 5.18.0.240
OS: Ubuntu 18.0.4
Debug logs:
(Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here. Post in .txt not .doc, .rtf or some other formatted document)
Description of issue:

Any time I try to add anything (indexer, connection, Download Client) I get this error:
“Object reference not set to an instance of an object” I’ll include a few log file entries, but so far Sonarr is unusable

Request Failed. GET /api/v3/update: Object reference not set to an instance of an object
System.NullReferenceException: Object reference not set to an instance of an object at System.Net.WebRequestPrefixElement…ctor (System.String P, System.Type creatorType) [0x00018] in <5bf358e735be486487282a37cb3bce80>:0 at System.Net.WebRequest.PopulatePrefixList () [0x00040] in <5bf358e735be486487282a37cb3bce80>:0 at System.Net.WebRequest.get_PrefixList () [0x00022] in <5bf358e735be486487282a37cb3bce80>:0 at System.Net.WebRequest.Create (System.Uri requestUri, System.Boolean useUriBase) [0x0002e] in <5bf358e735be486487282a37cb3bce80>:0 at System.Net.WebRequest.Create (System.Uri requestUri) [0x00014] in <5bf358e735be486487282a37cb3bce80>:0 at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:26 at NzbDrone.Common.Http.Dispatchers.FallbackHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x0003c] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\Dispatchers\FallbackHttpDispatcher.cs:35 at NzbDrone.Common.Http.HttpClient.ExecuteRequest (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookieContainer) [0x0007e] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\HttpClient.cs:121 at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) [0x00008] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\HttpClient.cs:57 at NzbDrone.Common.Http.HttpClient.Get (NzbDrone.Common.Http.HttpRequest request) [0x00007] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\HttpClient.cs:264 at NzbDrone.Common.Http.HttpClient.Get[T] (NzbDrone.Common.Http.HttpRequest request) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\HttpClient.cs:269 at NzbDrone.Core.Update.UpdatePackageProvider.GetRecentUpdates (System.String branch, System.Version currentVersion) [0x0006c] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Update\UpdatePackageProvider.cs:55 at NzbDrone.Core.Update.RecentUpdateProvider.GetRecentUpdatePackages () [0x0000c] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Update\RecentUpdateProvider.cs:27 at Sonarr.Api.V3.Update.UpdateModule.GetRecentUpdates () [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\Sonarr.Api.V3\Update\UpdateModule.cs:21 at Sonarr.Http.REST.RestModule1[TResource].&lt;set_GetResourceAll&gt;b__33_0 (System.Object options) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\Sonarr.Http\REST\RestModule.cs:121 at (wrapper dynamic-method) System.Object.CallSite.Target(System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Func2<object, object>,object) at Nancy.Routing.Route+<>c__DisplayClass4.<Wrap>b__3 (System.Object parameters, System.Threading.CancellationToken context) [0x00049] in <bb3027f50b35411088f45475912cc2ff>:0

Unable to send test message: Object reference not set to an instance of an object
System.NullReferenceException: Object reference not set to an instance of an object
at NzbDrone.Core.Rest.RestSharpExtensions.ValidateResponse (RestSharp.IRestResponse response, RestSharp.IRestClient restClient) [0x001f7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Rest\RestSharpExtensions.cs:52
at NzbDrone.Core.Rest.RestSharpExtensions.ExecuteAndValidate (RestSharp.IRestClient client, RestSharp.IRestRequest request) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Rest\RestSharpExtensions.cs:76
at NzbDrone.Core.Notifications.Xbmc.XbmcJsonApiProxy.ProcessRequest (RestSharp.IRestRequest request, NzbDrone.Core.Notifications.Xbmc.XbmcSettings settings, System.String method, System.Collections.Generic.Dictionary2[TKey,TValue] parameters) [0x00036] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Notifications\Xbmc\XbmcJsonApiProxy.cs:102 at NzbDrone.Core.Notifications.Xbmc.XbmcJsonApiProxy.GetJsonVersion (NzbDrone.Core.Notifications.Xbmc.XbmcSettings settings) [0x00006] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Notifications\Xbmc\XbmcJsonApiProxy.cs:34 at NzbDrone.Core.Notifications.Xbmc.XbmcService+<>c__DisplayClass8_0.<GetJsonVersion>b__0 () [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Notifications\Xbmc\XbmcService.cs:64 at NzbDrone.Common.Cache.Cached1[T].Get (System.String key, System.Func1[TResult] function, System.Nullable1[T] lifeTime) [0x00069] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Cache\Cached.cs:81
at NzbDrone.Core.Notifications.Xbmc.XbmcService.GetJsonVersion (NzbDrone.Core.Notifications.Xbmc.XbmcSettings settings) [0x00014] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Notifications\Xbmc\XbmcService.cs:62
at NzbDrone.Core.Notifications.Xbmc.XbmcService.Test (NzbDrone.Core.Notifications.Xbmc.XbmcSettings settings, System.String message) [0x00021] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Notifications\Xbmc\XbmcService.cs:106
Close

Task Error: Object reference not set to an instance of an object
System.NullReferenceException: Object reference not set to an instance of an object at System.Net.WebRequestPrefixElement…ctor (System.String P, System.Type creatorType) [0x00018] in <5bf358e735be486487282a37cb3bce80>:0 at System.Net.WebRequest.PopulatePrefixList () [0x00040] in <5bf358e735be486487282a37cb3bce80>:0 at System.Net.WebRequest.get_PrefixList () [0x00022] in <5bf358e735be486487282a37cb3bce80>:0 at System.Net.WebRequest.Create (System.Uri requestUri, System.Boolean useUriBase) [0x0002e] in <5bf358e735be486487282a37cb3bce80>:0 at System.Net.WebRequest.Create (System.Uri requestUri) [0x00014] in <5bf358e735be486487282a37cb3bce80>:0 at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\Dispatchers\ManagedHttpDispatcher.cs:26 at NzbDrone.Common.Http.Dispatchers.FallbackHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) [0x0003c] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\Dispatchers\FallbackHttpDispatcher.cs:35 at NzbDrone.Common.Http.HttpClient.ExecuteRequest (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookieContainer) [0x0007e] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\HttpClient.cs:121 at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) [0x00008] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\HttpClient.cs:57 at NzbDrone.Common.Http.HttpClient.Get (NzbDrone.Common.Http.HttpRequest request) [0x00007] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\HttpClient.cs:264 at NzbDrone.Common.Http.HttpClient.Get[T] (NzbDrone.Common.Http.HttpRequest request) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Http\HttpClient.cs:269 at NzbDrone.Core.Update.UpdatePackageProvider.GetLatestUpdate (System.String branch, System.Version currentVersion) [0x0006c] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Update\UpdatePackageProvider.cs:38 at NzbDrone.Core.Update.CheckUpdateService.AvailableUpdate () [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Update\UpdateCheckService.cs:26 at NzbDrone.Core.HealthCheck.Checks.UpdateCheck.Check () [0x000f7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\HealthCheck\Checks\UpdateCheck.cs:63 at NzbDrone.Core.HealthCheck.HealthCheckService+<>c.<PerformHealthCheck>b__11_0 (NzbDrone.Core.HealthCheck.IProvideHealthCheck c) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\HealthCheck\HealthCheckService.cs:71 at System.Linq.Enumerable+SelectArrayIterator2[TSource,TResult].ToList () [0x00014] in &lt;0a52baf64a2a4f9b96857c7b358eb12d&gt;:0 at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <0a52baf64a2a4f9b96857c7b358eb12d>:0 at NzbDrone.Core.HealthCheck.HealthCheckService.PerformHealthCheck (NzbDrone.Core.HealthCheck.IProvideHealthCheck[] healthChecks) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\HealthCheck\HealthCheckService.cs:71 at NzbDrone.Core.HealthCheck.HealthCheckService.HandleAsync (NzbDrone.Core.Lifecycle.ApplicationStartedEvent message) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\HealthCheck\HealthCheckService.cs:104 at NzbDrone.Core.Messaging.Events.EventAggregator+<>c__DisplayClass6_2`1[TEvent].<PublishEvent>b__2 () [0x00035] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Messaging\Events\EventAggregator.cs:123 at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <04750267503a43e5929c1d1ba19daf3e>:0 at System.Threading.Tasks.Task.Execute () [0x00000] in <04750267503a43e5929c1d1ba19daf3e>:0


#2

Ok… Removed sonarr and mono… and rebuilt from scratch… its working now


closed #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.