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.
251 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 35,171 Reputation points
    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.

    0 comments No comments

Your answer

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