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 #39

Closed xiaofu2024 closed 7 years ago

xiaofu2024 commented 7 years ago

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

I have set correct endpoint and subscription key, however, keeping get above error. static NSString const ProjectOxfordFaceSubscriptionKey = @"#################"; static NSString const ProjectOxfordFaceEndpoint = @"https://southeastasia.api.cognitive.microsoft.com/face/v1.0";

I also tried Cognitive-Face-Android, it is very easy to use and no error.

overbrimming commented 7 years ago

Tian- I've editing your comment to remove what looks like it may have been your API key. Please regenerate your key if this comment did leak it! In the Azure portal, open your Face API Subscription. Under "Resource Management" select "Keys" and then "Regenerate Key" (1 or 2 depending on which you published.

huxuan commented 7 years ago

You may need to add a trailing slash at the end of endpoint settings.

xiaofu2024 commented 7 years ago

Thanks for your big help!

It is works!

Thanks!

Best Regards, Xuefeng

2017-09-15 6:38 GMT+08:00 Xuan Hu (Sean) notifications@github.com:

You may need to add a trailing slash at the end of endpoint settings.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Microsoft/Cognitive-Face-iOS/issues/39#issuecomment-329627960, or mute the thread https://github.com/notifications/unsubscribe-auth/AHki_TPzrosZmGum2TeONq3daRHtyjXeks5siaregaJpZM4PXEmB .

huxuan commented 7 years ago

Close as the problem solved.