question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure QnA maker fails to create a knowledge base by raising ExtractionFailure error code

See original GitHub issue

Describe the bug Azure QnA Maker SDK fails to create knowledgebase from a URL powered by an Azure Http-Triggered function while the function is publicly available and it only accepts GET requests. The response of the function is a pure string return by “return new OkObjectResult(responseString)

Expected behavior Knowledgebase should be created from the given URL.

Actual behavior (include Exception or Stack Trace) The following error message is produced:

Unsupported / Invalid url(s). Failed to extract Q&A from the source

To Reproduce Run the following code snippet in a console application:

var createKbDto = new CreateKbDTO
        {
            Name = request.Name,
            QnaList = new List<QnADTO>(),
            Urls = new List<string>
            {        "https://caccea77.ngrok.io/api/jobdescription/facade/2034/43D672205B3106BE3273C60FE423C632"
            }
        };

        var createKb = await client.Knowledgebase.CreateAsync(createKbDto);
        var createdOp = await MonitorOperationAsync(client, createKb);
        return GetKbId(createdOp);

Environment:

  • Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker" Version=“1.1.0”
  • IDE and version : Visual Studio 16.5.4
  • Environment: .NET Core SDK (reflecting any global.json): Version: 3.1.201 Commit: b1768b4ae7

Runtime Environment: OS Name: Windows OS Version: 10.0.18363 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\3.1.201\

Host (useful for support): Version: 3.1.3 Commit: 4a9f85e9f8

.NET Core SDKs installed: 2.1.802 [C:\Program Files\dotnet\sdk] 2.2.207 [C:\Program Files\dotnet\sdk] 2.2.402 [C:\Program Files\dotnet\sdk] 3.0.100-rc1-014190 [C:\Program Files\dotnet\sdk] 3.1.100-preview3-014645 [C:\Program Files\dotnet\sdk] 3.1.201 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.0-rc1.19457.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.0-preview3.19555.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.0-rc1-19456-20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.0-preview3.19553.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.0.0-rc1-19456-20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.0-preview3.19553.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jsquirecommented, May 20, 2020

With regret, I do not know. The QnA Maker service team will need to assist, but beyond that I don’t have insight. Each Azure service team has their own triage process once an issue has been identified and tagged. In this case, it would appear that they’ve identified @dfulcer as the point of contact.

If this is a show stopping issue, I’d recommend opening an Azure support ticket. That will be a more formal and expedient route for support with a proper escalation path. It would ensure that someone is actively working to engage the proper folks for attention.

My apologies that I don’t have a better answer for you.

0reactions
rokulkacommented, Oct 5, 2021

This thread has came to the QnAMaker team now 😦 This is related to the QnAMaker extraction logic, not specific to SDK. As per the error, the provided URL content didn’t support our extraction standard to generate any QnAs. However, I see that the provided URL doesn’t exist anymore. Please close the thread if it’s too late, or share a valid URL so that we can investigate. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure QnA maker fails to create a knowledge base by ...
We have the following code snippet that is supposed to create a knowledge base: var createKbDto = new CreateKbDTO { Name = request....
Read more >
Troubleshooting - QnA Maker - Azure AI services
Answer: To use multiple language and multiple knowledge bases, the user has to create a QnA Maker resource for each language. This will...
Read more >
Azure QnA maker fails to create a ... - appsloveworld.com
Coding example for the question Azure QnA maker fails to create a knowledge base by raising ExtractionFailure error code.
Read more >
azure.ai.language.questionanswering.projects package
One of a server-defined set of error codes. Possible values include: "InvalidRequest", "InvalidParameterValue", ...
Read more >
Create and deploy a knowledge base in Azure
This is a step by step guide to create and deploy a QnA Maker knowledge base in Azure. QnA Maker knowledge base is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found