# Errors description

# Cryptograph Generation Parameters

# TooMuchDataError

Caused when generated data bigger then blockCols/blockRows size.

Broken request example. Sended following fields:

  • enroll field face_image
  • enroll field pipeline

pipeline:




 
 






{
  "cryptographGenerationParameters":
  {
    "blockCols": 2,
    "blockRows": 2,
    "errorCorrection": 10,
    "gridSize": 6,
    "thickness": 2
  }
}
1
2
3
4
5
6
7
8
9
10

In this example resulted cryptograph size ("blockCols": 2,"blockRows": 2) less then generated data.

Response code: 400 Bad Request

Error text example:

Cryptograph generation error, code -92, message CreateBarcode returns error code -92, which is TooMuchDataError
1

# Face Pipeline

# Meaningless operation

Caused when facePipeline parameters conflict with each other.

Broken request example. Sended following fields:

  • enroll field face_image
  • enroll field pipeline

pipeline:




 
 
 





{
  "facePipeline": 
     {
        "performTemplateExtraction": false,
        "faceDetectorConfidence": 0.6,
        "faceSelectorAlg": 1,
        "performCompression": false,
        "compressionLevel": 2
     }
}
1
2
3
4
5
6
7
8
9
10

In this example set the parameters for face detection ("faceDetectorConfidence": 0.6, "faceSelectorAlg": 1), but have previously disabled face detection ("performTemplateExtraction": false).

Similarly in next - set the parameters for image compression ("compressionLevel": 2), but have previously disabled image compression ("performCompression": false).

Response code: 400 Bad Request

Error text example:

Errors while encoding\nSection face_image, guid 44b07b02-345b-4ebb-9655-9024d4111e6c, code 400, message Meaningless operation - neither extract template nor compress image requested.
1

# Both face_image and face_template present and template extraction requested

Caused when input result type as output type.

Broken request example. Sended following fields:

  • enroll field face_image
  • enroll field face_template
  • enroll field pipeline

pipeline:




 



{
  "facePipeline": 
     {
        "performTemplateExtraction": true
     }
}
1
2
3
4
5
6

In this case type of result face_image field proccessing (with enabled template extraction "performTemplateExtraction": true) would be template and we already have template in the request (field face_template), but result type must be unique.

Response code: 400 Bad Request

Error text example:

EnrollAsync: errors in request\nBoth face_image and face_template present and template extraction requested
1

# Both face_image and compressed_image present and image compression requested

Caused when input result type as output type.

Broken request example. Sended following fields:

  • enroll field face_image
  • enroll field compressed_image
  • enroll field pipeline

pipeline:




 



{
  "facePipeline": 
     {
        "performCompression": true
     }
}
1
2
3
4
5
6

In this case type of result face_image field proccessing (with enabled image compression "performCompression": true) would be compressed image and we already have compressed image in the request (field compressed_image), but result type must be unique.

Response code: 400 Bad Request

Error text example:

EnrollAsync: errors in request\nBoth face_image and compressed_image present and image compression requested
1

# Finger Pipeline

# Both finger_image_rN and corresponging target finger_template_rN present

Caused when input result type as output type.

Broken request example. Sended following fields:

  • enroll field finger_image_r1
  • enroll field finger_template_r1
  • enroll field pipeline

pipeline:




 
 
 
 




{
  "fingerPipelines": [
     {
        "fieldId": "finger_image_r1",
        "fingerType": "RT",
        "impressionType": "LP",
        "templateType": "NistT5"
     }
  ]  
}
1
2
3
4
5
6
7
8
9
10

In this case type of result finger_image_r1 field proccessing would be finger template and we already have finger template in the request (field finger_template_r1), but result type must be unique.

Similar to other combinations (finger_image_r2/finger_template_r2, finger_image_r3/finger_template_r3 etc.).

Response code: 400 Bad Request

Error text example:

EnrollAsync: errors in request\nBoth finger_image_r1 and corresponging target finger_template_r1 present
1

# After encoding, duplicate templates found: finger_template_rN

Caused when input result type as output type.

Broken request example. Sended following fields:

  • enroll field right_slap
  • enroll field finger_template_r3
  • enroll field pipeline

pipeline:




 




{
  "fingerPipelines": [
     {
        "fieldId": "right_slap"
     }
  ]  
}
1
2
3
4
5
6
7

In this case type of result right_slap field proccessing would be finger template and we already have finger template in the request (field finger_template_r3), but result type must be unique.

Similar to other combinations (right_slap/finger_template_r1, right_slap/finger_template_r2, left_slap/finger_template_l1, left_slap/finger_template_l2 etc.).

Response code: 400 Bad Request

Error text example:

After encoding, duplicate templates found: finger_template_r3
1

# Pipeline for finger_image_rN presents but corresponding finger image section not found

Caused when filedId in pipeline not passed as field.

Broken request example. Sended following fields:

  • enroll field finger_image_r1
  • enroll field pipeline

pipeline:




 




{
  "fingerPipelines": [
     {
        "fieldId": "finger_image_r2"
     }
  ]  
}
1
2
3
4
5
6
7

In this case sended finger_image_r1 field but it not in pipeline (in pipeline instructions for finger_image_r2).

Response code: 400 Bad Request

Error text example:

EnrollAsync: errors in request\nPipeline for finger_image_r2 presents but corresponding finger image section not found
1

# fingerPipelines contain duplicate records for finger types

Caused when filedId duplicated.

Broken request example. Sended following fields:

  • enroll field finger_image_r1
  • enroll field pipeline

pipeline:




 


 




{
  "fingerPipelines": [
     {
        "fieldId": "finger_image_r1"
     },
     {
        "fieldId": "finger_image_r1"
     }
  ]  
}
1
2
3
4
5
6
7
8
9
10

In this case fieldId finger_image_r1 duplicated in pipeline.

Response code: 400 Bad Request

Error text example:

EnrollAsync: errors in request\nSection 'pipeline' is corrupted: fingerPipelines contain duplicate records for finger types RT
1