Skip to content

Unable to properly retrieve the transaction process result. #254

Description

@adrian1chia

I am pulling the latest 9.1.666 - repositories {
mavenCentral()
maven { url = 'https://maven.regulaforensics.com/RegulaDocumentReaderWebClient' }
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.regula.documentreader:webclient:9.+'

annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'

}

I have problem getting the transaction result after reprocessing in a server side verification flow.

The value of the result_type field 111 does not match any key defined in the discriminator's mapping.
The value of the result_type field 111 does not match any key defined in the discriminator's mapping.
Warning: failed to parse field of type com.regula.documentreader.webclient.model.ResultItem, reason: cannot determine model class of name: <111>
The required field mDL is not found in the JSON string: {"detailsOptical":{"docType":1,"expiry":1,"imageQA":0,"mrz":1,"overallStatus":1,"pagesCount":1,"security":1,"text":1,"vds":2},"detailsRFID":{"AA":2,"BAC":2,"CA":2,"PA":2,"PACE":2,"TA":2,"overallStatus":2},"optical":1,"overallStatus":1,"portrait":2,"rfid":2,"stopList":2}
The required field detailsAge is not found in the JSON string: {"detailsOptical":{"docType":1,"expiry":1,"imageQA":0,"mrz":1,"overallStatus":1,"pagesCount":1,"security":1,"text":1,"vds":2},"detailsRFID":{"AA":2,"BAC":2,"CA":2,"PA":2,"PACE":2,"TA":2,"overallStatus":2},"optical":1,"overallStatus":1,"portrait":2,"rfid":2,"stopList":2}
The required field age is not found in the JSON string: {"detailsOptical":{"docType":1,"expiry":1,"imageQA":0,"mrz":1,"overallStatus":1,"pagesCount":1,"security":1,"text":1,"vds":2},"detailsRFID":{"AA":2,"BAC":2,"CA":2,"PA":2,"PACE":2,"TA":2,"overallStatus":2},"optical":1,"overallStatus":1,"portrait":2,"rfid":2,"stopList":2}
Warning: failed to parse field of type com.regula.documentreader.webclient.model.StatusResult, reason: Cannot invoke "com.google.gson.JsonElement.getAsInt()" because "jsonElement" is null

When i inspect the response json, i can see that the container list is having null for result items like detailsOptical. from the logs, its quite clear the missing mDL, detailsAge and age are causing the StatusResult not able to be parsed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions