microsoft/ProjectOxford-ClientSDK

Invalid subscription Key

Opened this issue · 2 comments

I have found that while using Face API I get exception as "access denied due to invalid subscription key" and the reason is that the endpoint url in my azure is westcentral and in the SDK while debugging I found the code is pointing to westus . Now how to solve this problem?

You can provide the endpoint as a second parameter to the client.

using (var client = new FaceServiceClient(Configuration.ApiKey,Configuration.EndPoint)){}

The error is misleading IMHO, and it doesn't make sense to have a default endpoint at all.

I am getting same error in vision API and there is no way to add endpoint in VisionServiceClient.