This is a migrated thread and some comments may be shown as answers.

Odd primitive errors showing

1 Answer 84 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Iron
Paul asked on 19 Dec 2016, 05:44 PM

A couple of weeks ago, there was an error of an invalid json primitive. From reading about it, it's basically that the json is improperly setup. The error log below seems to trace that to the Rad date picker. However, the only client scripts I am using for that control is resizing it and focusing on the input box. I do not think that would be the problem.  What strange is that there is more than 25 errors with this error that happened within a minute from the same IP Address. Could this be a bot or something else?

Error:   Invalid JSON primitive: ovAA
Stack Trace:   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject() at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) at Telerik.Web.UI.RadWebControl.LoadPostData(String postDataKey, NameValueCollection postCollection) at Telerik.Web.UI.RadDatePicker.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 20 Dec 2016, 09:36 AM
Hi Paul,

Look as someone submitted invalid data in the ClientState input of the DatePicker.

It is hard so say what caused it. Could be bot, could be some browser addon that is messing with the client machine or could be on purpose. 

The ClientState contains only client settings that we like to persist, and even if something else is passed it is either ignored or failing in deserialization. 

Regards,
Vasil
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
DatePicker
Asked by
Paul
Top achievements
Rank 1
Iron
Answers by
Vasil
Telerik team
Share this question
or