Audit trail throws an exception
Friday, December 4, 2015 at 10:24am
I have a controller method
public List GetPackageTransactions(string packageId) // packageId = "660bd4f9-d090-4233-9fec-d176404e1871"
{
PackageId pid = new Silanis.ESL.SDK.PackageId(packageId);
List list = eslClient.AuditService.GetAudit(pid);
return list;
}
eslClient.AuditService.GetAudit(pid); throws an exception:
Newtonsoft.Json.JsonReaderException was caught
HResult=-2146233088
Message=Unexpected character encountered while parsing value: . Path '', line 0, position 0.
Source=Newtonsoft.Json
LineNumber=0
LinePosition=0
Path=""
StackTrace:
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.ReadInternal()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
at Silanis.ESL.SDK.EslServerException..ctor(String message, String errorDetails, WebException cause) in c:\Users\dlukic\Documents\Visual Studio 2013\Projects\eSignLive\esl.sdk.net-master\sdk\Silanis.ESL.SDK\EslServerException.cs:line 24
at Silanis.ESL.SDK.Internal.HttpMethods.GetHttp(String apiToken, String path) in c:\Users\dlukic\Documents\Visual Studio 2013\Projects\eSignLive\esl.sdk.net-master\sdk\Silanis.ESL.SDK\src\Internal\HttpMethods.cs:line 266
at Silanis.ESL.SDK.Services.AuditService.GetAudit(PackageId packageId) in c:\Users\dlukic\Documents\Visual Studio 2013\Projects\eSignLive\esl.sdk.net-master\sdk\Silanis.ESL.SDK\src\Services\AuditService.cs:line 39
InnerException:
I was expecting to see complete list of all trasnsactions against specific package.
What am I doing wrong?
Reply to: Audit trail throws an exception
Monday, December 7, 2015 at 09:20amReply to: Audit trail throws an exception
Monday, December 7, 2015 at 09:25amReply to: Audit trail throws an exception
Monday, December 7, 2015 at 10:14am