Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

createLargePersonGroup error with 1.4.0 #48

Open
abbana opened this issue Aug 21, 2018 · 5 comments
Open

createLargePersonGroup error with 1.4.0 #48

abbana opened this issue Aug 21, 2018 · 5 comments

Comments

@abbana
Copy link

abbana commented Aug 21, 2018

Hi,

I am using CocoaPod 1.4.0 , coding in Swift and have no issues with :

  • Identify
  • Verify
  • Create Large Person Group
  • Create Person

I am having issues when trying to add an image to the person.

Code:

self.faceClient.addPersonFace(withLargePersonGroupId: self.faceLargePersonGroup, personId: self.facePersonID, data: imageData, userData: "Image created on:", faceRectangle: nil, completionBlock: { (mMPOAddPersistedFaceResult, error) in

if (error != nil) {
    print("Error in addPersonFace error is : \(String(describing: error))")
}
else {

Error:

43EF-BA8A-08EA75F0E115>.<1> finished with error - code: -1002
Error in addPersonFace error is : Optional(Error Domain=POFaceServiceClient error - http response is not success :  Code=0 "(null)")

Endpoint I am using works flawlessy with the other methods. Large Group ID exsist , PersonID exsist , Data is correct (I have the same error if I use url instead)

I need some guidance to identify the error , the error log is not helping , and solve the issue.

Thanks.

@huxuan
Copy link
Contributor

huxuan commented Aug 21, 2018

  1. the method name should be addPersonFaceWithLargePersonGroupId,
  2. Please double confirm the first parameter is a string of the LargePersonGroupId rather than instance of LargePersonGroup.

@abbana
Copy link
Author

abbana commented Aug 21, 2018

Hi,

I am using 1.4.0 and if I try to use that method I have:

'addPersonFaceWithLargePersonGroupId(_:personId:data:userData:faceRectangle:completionBlock:)' has been renamed to 'addPersonFace(withLargePersonGroupId:personId:data:userData:faceRectangle:completionBlock:)'

And does not compile. Also the group is a string.

@huxuan
Copy link
Contributor

huxuan commented Aug 21, 2018

Please try to upgrade to 1.4.1 as it is a bug fix release.

@abbana
Copy link
Author

abbana commented Aug 21, 2018

Hi,

cocoa pod updated to 1.4.1 , forced group with a fixed string of a valid group, force PersonID with a fixed string of a valid person, nothing changed:

group is: test_01 , personID is 07f87e69-745c-4150-b05a-0c252f89beb9
Task <A72621C6-D940-49D6-958D-37B46D4D4EF9>.<1> finished with error - code: -1002
Error in addPersonFace error is : Error Domain=POFaceServiceClient error - http response is not success :  Code=0 "(null)"

Can you please try the 1.4.1 on xcode9.3.1 with swift on the lab and let us know?

We need to have this fixed as soon as possible.

Thank you so much.

@abbana
Copy link
Author

abbana commented Aug 23, 2018

Hi @huxuan ,

do you have any update on this please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants