Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/30/14 16:41:08 (10 years ago)
Author:
mroscoe
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Controllers/ExceptionDataController.cs

    r11222 r11246  
    3636        data.ForEach(t => Task.Add(t.TaskID.ToString()));
    3737        data.ForEach(e => Error.Add(e.ErrorMessage));
    38 
    39         return Json(new KeyValuePair<List<string>, List<string>>(Task, Error), JsonRequestBehavior.AllowGet);
     38       
     39        //Was overflowing default MaxJsonLength
     40        //return Json(new KeyValuePair<List<string>, List<string>>(Task, Error), JsonRequestBehavior.AllowGet);
     41        return new JsonResult() { Data = new KeyValuePair<List<string>, List<string>>(Task, Error), JsonRequestBehavior = JsonRequestBehavior.AllowGet, MaxJsonLength = Int32.MaxValue };
    4042      }
    4143    }
    4244
    43     public JsonResult SlaveExceptions(string limit, DateTime? start = null, DateTime? end = null, string clientId = null) {
     45    public JsonResult SlaveExceptions(DateTime? start = null, DateTime? end = null, string clientId = null) {
    4446      using (var db = new HiveDataContext(Settings.Default.HeuristicLab_Hive_LinqConnectionString)) {
    4547        var data =
     
    7375          );
    7476        }
    75         return Json(results, JsonRequestBehavior.AllowGet);
     77        //Was overflowing default MaxJsonLength
     78        //return Json(results, JsonRequestBehavior.AllowGet);
     79        return new JsonResult() { Data = results, JsonRequestBehavior = JsonRequestBehavior.AllowGet, MaxJsonLength = Int32.MaxValue };
    7680      }
    7781    }
Note: See TracChangeset for help on using the changeset viewer.