QnA Maker operation return Unauthorized message

vanlan choy 1 Reputation point
2021-04-02T00:35:49.517+00:00

Hi I follow the example in here https://learn.microsoft.com/en-us/azure/cognitive-services/QnAMaker/Quickstarts/quickstart-sdk?tabs=v1%2Cversion-1&pivots=programming-language-csharp#get-status-of-an-operation , while testing for create new KB and update KB examples I'm receiving "Operation returned an invalid status code 'Unauthorized'" , any help will be appreciated!

Programming language: C#
Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker v2.0.1

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,373 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 46,566 Reputation points
    2021-04-02T09:10:14.86+00:00

    Hello,

    Thanks for reaching out to us and sorry for the experience. Could you please check if you replace the right information in below session?

    var authoringKey = "QNA_MAKER_SUBSCRIPTION_KEY";
    var authoringURL = "QNA_MAKER_ENDPOINT";
    var queryingURL = "QNA_MAKER_RUNTIME_ENDPOINT";

    Regards.
    Yutong