From c4380589bcb5e58a8928a30f351c9aed1044debf Mon Sep 17 00:00:00 2001 From: Drewster727 Date: Sat, 16 Apr 2016 12:22:02 -0500 Subject: [PATCH] set the max json length (fixes large json response errors) --- PlexRequests.UI/Bootstrapper.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PlexRequests.UI/Bootstrapper.cs b/PlexRequests.UI/Bootstrapper.cs index 6e540dbaf..e39720c26 100644 --- a/PlexRequests.UI/Bootstrapper.cs +++ b/PlexRequests.UI/Bootstrapper.cs @@ -50,6 +50,7 @@ using PlexRequests.Store; using PlexRequests.Store.Models; using PlexRequests.Store.Repository; using PlexRequests.UI.Helpers; +using Nancy.Json; namespace PlexRequests.UI { @@ -104,6 +105,8 @@ namespace PlexRequests.UI // NotificationService container.Register().AsSingleton(); + JsonSettings.MaxJsonLength = int.MaxValue; + SubscribeAllObservers(container); base.ConfigureRequestContainer(container, context); var loc = ServiceLocator.Instance;