microsoft/Cognitive-Face-iOS

POFaceServiceClient error

samuelDeveloperiOS opened this issue · 7 comments

I built and ran the sample and change the subscription key and the End point with my credentials but when I tried to use the services every service return:

Domain=POFaceServiceClient error - http response is not success : { "statusCode": 404, "message": "Resource not found" }

I have a cognitive account and a free trial both with different end points and keys, I tried with both but I have gotten the same error.

Add these links with the images with the accounts, keys and end points, the debug screenshot and MPOAppDelegate.h

https://drive.google.com/open?id=0B0Q7Z65PAH9ocVBmcVlKOERFYmc
https://drive.google.com/open?id=0B0Q7Z65PAH9oanpGeGpWeGM5Rnc
https://drive.google.com/open?id=0B0Q7Z65PAH9oODV5aGx4S0pyUFk
https://drive.google.com/open?id=0B0Q7Z65PAH9oNW1FckFpVGE0dDA

I hope you can help me with this issues. (y)

Does ProjectOxfordFaceEndpoint contain spaces between .com/ and face/v1.0? It looks like this might be the case based on the last screenshot.

No, that is not the problem, this is the end point https://westcentralus.api.cognitive.microsoft.com/face/v1.0

Can you provide any other changes you have made?

I only cloned this repository and assigned ProjectOxfordFaceSubscriptionKey and ProjectOxfordFaceEndpoint, then I tried to use the app but the services didn't work.

There need to have an hard-coding slash / at the end of endpoint. Would you please to have a try on it?

Thank you so much. Now it is working. (y)

Yep, I have to admit it is an imperfect hard-coding pattern, will consider to improve it in the feture.

Close as problem solved.