Share via

How to fix invalid status code 'Unauthorized'?

Lachin Fernando 0 Reputation points
2023-03-20T07:38:41.83+00:00

I was using python azure sdk and following the official document. But at the prediction stage, this error occurs.

azure.cognitiveservices.vision.customvision.prediction.models._models_py3.CustomVisionErrorException: Operation returned an invalid status code 'Unauthorized'

any solutions?

Azure AI Custom Vision
Azure AI Custom Vision

An Azure artificial intelligence service and end-to-end platform for applying computer vision to specific domains.


1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 36,021 Reputation points Moderator
    2023-03-21T07:24:00.6333333+00:00

    Lachin Fernando Did you get a chance to see my response?

    In Addition, Please try to use the key and endpoint you see in custom vision studio for your project as mentioned in the documentation Get the URL and prediction key

    Do let us know if you need further help.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.