Microsoft Face API - 错误 401,iOS

Microsoft Face API - Error 401, iOS

我在我的应用程序中使用了订阅 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)"

我在创建新服务后从密钥中获取了 ID。我什至重新生成了它们。每次我 运行 这个程序,都会抛出同样的错误。

希望你们能解决问题。

干杯!

我终于可以修好了。 :)

在创建 API KEY 时,只需确保为 westus 服务器提供的端点应为:

https://westus.api.cognitive.microsoft.com/face/v1.0

就我而言,它有效。