microsoft / Cognitive-Face-iOS

iOS SDK for the Microsoft Face API, part of Cognitive Services
https://www.microsoft.com/cognitive-services/en-us/face-api
Other
184 stars 64 forks source link

POFaceServiceClient error #36

Closed samuelDeveloperiOS closed 7 years ago

samuelDeveloperiOS commented 7 years ago

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)

cthrash commented 7 years ago

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

samuelDeveloperiOS commented 7 years ago

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

huxuan commented 7 years ago

Can you provide any other changes you have made?

samuelDeveloperiOS commented 7 years ago

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

huxuan commented 7 years ago

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

samuelDeveloperiOS commented 7 years ago

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

huxuan commented 7 years ago

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

Close as problem solved.