Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Invalid subscription Key #100

Open
javaidnabi31 opened this issue Jul 7, 2017 · 2 comments
Open

Invalid subscription Key #100

javaidnabi31 opened this issue Jul 7, 2017 · 2 comments

Comments

@javaidnabi31
Copy link

javaidnabi31 commented Jul 7, 2017

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?

@IrisClasson
Copy link

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.

@joshivivek10
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants