How do I resolve error 401?

wqe233 1 Reputation point
2024-06-11T05:03:57.5066667+00:00

I'm trying to use Azure Computer Vision service to make a call for the API through this program

However I'm getting the error message "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."

This is confusing because I'm pretty sure that I'm using a valid subscription key and the right API endpoint for this service, as shown from image 1 and image 2

The troubleshoot page for this error isn't providing any helpful details either.

Is there anything I may be missing to resolve this issue?

__

Edit: Somehow, this was resolved on its own after waiting some time and it started working now. Are there explanations for why it was able to resolve itself now and not before?

Azure Computer Vision
Azure Computer Vision
An Azure artificial intelligence service that analyzes content in images and video.
338 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 30,711 Reputation points MVP
    2024-06-11T07:13:22.5666667+00:00

    Hello

    welcome to this moderated Azure community forum.

    Because you are referencing a GitHub repo, you can get in contact with the owner of that repo directly by submitting an issue.

    Just go to the Issues tab page and submit a new issue:

    User's image

    A 401 error is telling you access is denied. Please double-check eg. the API keys first.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    0 comments No comments