dlukic

Audit trail throws an exception

0 votes
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

0 votes
What is your SDK version? The latest or an older one? Also, which line of your code is it having an issue with?

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Audit trail throws an exception

0 votes
[assembly: AssemblyVersion("10.10.1")] --------------------------------------------------- I downloaded it a month ago so I believe is the latest one. code crashes on the line List list = eslClient.AuditService.GetAudit(pid);

Reply to: Audit trail throws an exception

0 votes
I'm also using the latest. You might double check that your package is completed. If it's not completed, I don't believe you have access to the audit info.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off