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="" position="" source="Newtonsoft.Json" linenumber="0" lineposition="0" stacktrace:="" at="" newtonsoft.json.jsontextreader.parsevalue="" newtonsoft.json.jsontextreader.readinternal="" newtonsoft.json.jsontextreader.read="" newtonsoft.json.serialization.jsonserializerinternalreader.readfortype="" reader="" jsoncontract="" contract="" boolean="" hasconverter="" newtonsoft.json.serialization.jsonserializerinternalreader.deserialize="" type="" objecttype="" checkadditionalcontent="" newtonsoft.json.jsonserializer.deserializeinternal="" newtonsoft.json.jsonserializer.deserialize="" newtonsoft.json.jsonconvert.deserializeobject="" value="" jsonserializersettings="" settings="" silanis.esl.sdk.eslserverexception..ctor="" message="" string="" errordetails="" webexception="" cause="" in="" c:="" studio="" silanis.esl.sdk.internal.httpmethods.gethttp="" apitoken="" silanis.esl.sdk.services.auditservice.getaudit="" packageid="" innerexception:="" i="" was="" expecting="" to="" see="" complete="" list="" of="" all="" trasnsactions="" against="" specific="" package.="" what="" am="" 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 Partner and Developer Technologies Manager, 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 Partner and Developer Technologies Manager, 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