Access denied due to invalid subscription key (Face API)

后端 未结 5 1216
渐次进展
渐次进展 2020-12-10 13:16

I am having trouble using Microsoft Face API. Below is my sample request:

curl -v -X POST \"https://westus.api.cognitive.microsoft.com/face/v1.0/detect?retur         


        
5条回答
  •  时光说笑
    2020-12-10 14:02

    I had faced the same issue, it seems like there is some problem with the keys generated newly. To fix this you can actually add your endpoint as well, when you create the object for IFaceServiceClient. You can see the code below.

    private readonly IFaceServiceClient faceServiceClient = new FaceServiceClient("your key", "Your endpoint");
    

提交回复
热议问题