Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants