【发布时间】:2018-01-06 08:36:36
【问题描述】:
我在我的应用中使用了订阅 ID,但在运行时出现以下错误。
Error Domain=POFaceServiceClient error - http response is not success :
{"error":{"code":"Unspecified","message":"Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key."}}
Code=401 "(null)"
创建新服务后,我从 Keys 中获取了 ID。我什至重新生成了它们。每次我运行程序,都会抛出同样的错误。
希望你们有解决办法。
干杯!
【问题讨论】:
-
是的!去过也做过。没用!
-
您的 API 密钥适用于美国西部吗? github sample 被硬编码到 westus。
-
没有。它不是。我选择了西南亚选项。
-
您更改了
ProjectOxfordFaceEndpoint以反映这一点?应该是https://southeastasia.api.cognitive.microsoft.com/face/v1.0/
标签: ios swift microsoft-cognitive face-api