2

I tried both 'Key 1' and 'Key 2' of Face API from https://azure.microsoft.com/en-us/try/cognitive-services/my-apis/ in this. But am getting the following error. How can I get a new API key? or how can I fix this problem?

{ "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." } }

1
  • Hey @Ahmad did you solve the problem? I am getting the same error. Jun 14, 2018 at 3:28

1 Answer 1

0

Please make sure that:

  1. You've specified the correct endpoint. The endpoint is shown on the same my_apis link you included. An API key for one region/property will not work in another.
  2. Your key has not expired. The remaining days will be shown on that same link.
2
  • I Have the same problem too. I tried both keys and I have 28 days left Jul 17, 2017 at 19:17
  • 1
    Can you try this page? Launch an API Test Console by clicking on the correct region (WestUS, etc.). You will need to enter the API key in the edit box on the second page.
    – cthrash
    Jul 17, 2017 at 23:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.