Skip To The Main Content
Error during GetResponse. Full Request(sanitized): {"AlwaysMultipartFormData":false,"JsonSerializer":{"DateFormat":null,"RootElement":null,"Namespace":null,"ContentType":"application/json"},"XmlSerializer":{"RootElement":null,"Namespace":null,"DateFormat":null,"ContentType":"text/xml"},"ResponseWriter":null,"UseDefaultCredentials":false,"Parameters":[{"Name":"ProductID","Value":"4368","Type":5,"ContentType":null},{"Name":"Accept","Value":"application/json, application/xml, text/json, text/x-json, text/javascript, text/xml","Type":3,"ContentType":null}],"Files":[],"Method":0,"Resource":null,"RequestFormat":0,"RootElement":null,"OnBeforeDeserialization":{"Delegate":{},"method0":{"Name":"<.ctor>b__0","AssemblyName":"RestSharp, Version=105.2.3.0, Culture=neutral, PublicKeyToken=null","ClassName":"RestSharp.RestRequest","Signature":"Void <.ctor>b__0(RestSharp.IRestResponse)","Signature2":"System.Void <.ctor>b__0(RestSharp.IRestResponse)","MemberType":8,"GenericArguments":null}},"DateFormat":null,"XmlNamespace":null,"Credentials":null,"UserState":null,"Timeout":0,"ReadWriteTimeout":0,"Attempts":1} Response: NotFound, {"ErrorCode":"c-sc-20","Message":"Book not found.","ShowThisError":true} Full Response: {"Data":null,"Request":{"AlwaysMultipartFormData":false,"JsonSerializer":{"DateFormat":null,"RootElement":null,"Namespace":null,"ContentType":"application/json"},"XmlSerializer":{"RootElement":null,"Namespace":null,"DateFormat":null,"ContentType":"text/xml"},"ResponseWriter":null,"UseDefaultCredentials":false,"Parameters":[{"Name":"ProductID","Value":"4368","Type":5,"ContentType":null},{"Name":"Accept","Value":"application/json, application/xml, text/json, text/x-json, text/javascript, text/xml","Type":3,"ContentType":null}],"Files":[],"Method":0,"Resource":null,"RequestFormat":0,"RootElement":null,"OnBeforeDeserialization":{"Delegate":{},"method0":{"Name":"<.ctor>b__0","AssemblyName":"RestSharp, Version=105.2.3.0, Culture=neutral, PublicKeyToken=null","ClassName":"RestSharp.RestRequest","Signature":"Void <.ctor>b__0(RestSharp.IRestResponse)","Signature2":"System.Void <.ctor>b__0(RestSharp.IRestResponse)","MemberType":8,"GenericArguments":null}},"DateFormat":null,"XmlNamespace":null,"Credentials":null,"UserState":null,"Timeout":0,"ReadWriteTimeout":0,"Attempts":1},"ContentType":"text/plain; charset=utf-8","ContentLength":72,"ContentEncoding":"","Content":"{\"ErrorCode\":\"c-sc-20\",\"Message\":\"Book not found.\",\"ShowThisError\":true}","StatusCode":404,"StatusDescription":"Not Found","RawBytes":"eyJFcnJvckNvZGUiOiJjLXNjLTIwIiwiTWVzc2FnZSI6IkJvb2sgbm90IGZvdW5kLiIsIlNob3dUaGlzRXJyb3IiOnRydWV9","ResponseUri":"https://pdaweb.pda.org/AptifyServicesAPI/Services/Store/GetProductData?ProductID=4368","Server":"Microsoft-IIS/10.0","Cookies":[{"Comment":"","CommentUri":null,"Discard":false,"Domain":"pdaweb.pda.org","Expired":false,"Expires":"0001-01-01T00:00:00","HttpOnly":false,"Name":"AptifySession","Path":"/AptifyServicesAPI/","Port":"","Secure":true,"TimeStamp":"2023-09-28T21:33:26.3789665-07:00","Value":"","Version":0}],"Headers":[{"Name":"Pragma","Value":"no-cache","Type":3,"ContentType":null},{"Name":"Content-Length","Value":"72","Type":3,"ContentType":null},{"Name":"Cache-Control","Value":"no-cache","Type":3,"ContentType":null},{"Name":"Content-Type","Value":"text/plain; charset=utf-8","Type":3,"ContentType":null},{"Name":"Date","Value":"Fri, 29 Sep 2023 04:33:26 GMT","Type":3,"ContentType":null},{"Name":"Expires","Value":"-1","Type":3,"ContentType":null},{"Name":"Set-Cookie","Value":"AptifySession=; domain=pdaweb.pda.org; path=/AptifyServicesAPI/; secure","Type":3,"ContentType":null},{"Name":"Server","Value":"Microsoft-IIS/10.0","Type":3,"ContentType":null},{"Name":"X-AspNet-Version","Value":"4.0.30319","Type":3,"ContentType":null},{"Name":"X-Powered-By","Value":"ASP.NET","Type":3,"ContentType":null}],"ResponseStatus":2,"ErrorMessage":"Data at the root level is invalid. Line 1, position 1.","ErrorException":{"ClassName":"System.Xml.XmlException","Message":"Data at the root level is invalid. Line 1, position 1.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at System.Xml.XmlTextReaderImpl.Throw(Exception e)\r\n at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()\r\n at System.Xml.XmlTextReaderImpl.ParseDocumentContent()\r\n at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)\r\n at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)\r\n at RestSharp.Deserializers.XmlDeserializer.Deserialize[T](IRestResponse response)\r\n at RestSharp.RestClient.Deserialize[T](IRestRequest request, IRestResponse raw)","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nThrow\nSystem.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Xml.XmlTextReaderImpl\nVoid Throw(System.Exception)","HResult":-2146232000,"Source":"System.Xml","WatsonBuckets":null,"res":"Xml_InvalidRootData","args":[""],"lineNumber":1,"linePosition":1,"sourceUri":"","version":"2.0"}}