Why did QnA Host throw a 500 error

Karrim Rabi-Laleh 1 Reputation point
2020-11-10T12:04:07.463+00:00

On 2nd November 2020 our QnA Host just failed to generate any answers for a about 15 minutes between (11/2/2020, 8:46:39.553 AM) and (11/2/2020, 8:49:58.395 AM) . can you help us understand why and how to prevent it happening again?

Example QnA endpoint:

https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/182abc9c-6376-4a9a-8657-cbcf9be793e0/generateanswer

We are using the he bot Microsoft.Bot.Builder.AI.QnA.IQnAMakerClient to make the call.

var qnaMakerClient = knowledgeBaseFactory.Create(kb);
var qnaMakerOptions = new QnAMakerOptions
{
ScoreThreshold = kb.MatchThreshold,
Top = top,
Context = new QnARequestContext()
};
var queryResults = await qnaMakerClient.GetAnswersAsync(turnContext, qnaMakerOptions, null);
return queryResults.Select(r => r.ToKnowledgeBaseQueryResult(kb.Id)).ToList();

here are the Failed Requests from app insights it happened across multiple knowledgebases:

"timestamp [UTC]",id,source,name,url,success,resultCode,duration,performanceBucket,itemType,customDimensions,customMeasurements,"operation_Name","operation_Id","operation_ParentId","operation_SyntheticSource","session_Id","user_Id","user_AuthenticatedId","user_AccountId","application_Version","client_Type","client_Model","client_OS","client_IP","client_City","client_StateOrProvince","client_CountryOrRegion","client_Browser","cloud_RoleName","cloud_RoleInstance",appId,appName,iKey,sdkVersion,itemId,itemCount
"11/2/2020, 8:46:39.553 AM","|eae60e281fc3504f989dd409d0139838.47ba4d1e11fed64d.2f38c6cc_",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/182abc9c-6376-4a9a-8657-cbcf9be793e0/generateanswer",False,500,"8.130700000000001","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",eae60e281fc3504f989dd409d0139838,47ba4d1e11fed64d,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","fe6c0fd0-1ce7-11eb-ae5e-b569f8f263e3",1
"11/2/2020, 8:46:39.563 AM","|eae60e281fc3504f989dd409d0139838.fceca3fa964d724a.2f38c6cd
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/6c9b3e50-b7c4-4f68-a78c-0bf014dce518/generateanswer",False,500,"8.4327","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",eae60e281fc3504f989dd409d0139838,fceca3fa964d724a,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","fe6c0fd1-1ce7-11eb-ae5e-b569f8f263e3",1
"11/2/2020, 8:47:05.412 AM","|8693cd3be6a43246a22befa2a19274e9.86596aa581dec04d.2f38c6ce
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/182abc9c-6376-4a9a-8657-cbcf9be793e0/generateanswer",False,500,"8.615400000000001","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",8693cd3be6a43246a22befa2a19274e9,86596aa581dec04d,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","fe6c0fd2-1ce7-11eb-ae5e-b569f8f263e3",1
"11/2/2020, 8:47:05.431 AM","|8693cd3be6a43246a22befa2a19274e9.7a93c144ebe0fb47.2f38c6cf
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/6c9b3e50-b7c4-4f68-a78c-0bf014dce518/generateanswer",False,500,"8.9346","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",8693cd3be6a43246a22befa2a19274e9,7a93c144ebe0fb47,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","fe6c0fd3-1ce7-11eb-ae5e-b569f8f263e3",1
"11/2/2020, 8:47:07.854 AM","|314805f0a847f74e91a181fd738dc005.413a85a6c315e742.2f38c6d0
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/6c9b3e50-b7c4-4f68-a78c-0bf014dce518/generateanswer",False,500,"10.5434","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",314805f0a847f74e91a181fd738dc005,413a85a6c315e742,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","fe6c0fd4-1ce7-11eb-ae5e-b569f8f263e3",1
"11/2/2020, 8:47:07.854 AM","|314805f0a847f74e91a181fd738dc005.fe3a3223962e0740.2f38c6d1
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/182abc9c-6376-4a9a-8657-cbcf9be793e0/generateanswer",False,500,"10.3955","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",314805f0a847f74e91a181fd738dc005,fe3a3223962e0740,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","fe6c0fd5-1ce7-11eb-ae5e-b569f8f263e3",1
"11/2/2020, 8:50:45.629 AM","|3adbff3d6ae0b64d8911728449f73b35.b93a74109cead14c.2f38c6d4
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/5806f0b2-d99b-4ac3-a352-f843f1c8a72c/generateanswer",False,500,"7.4877","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",3adbff3d6ae0b64d8911728449f73b35,b93a74109cead14c,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","91136590-1ce8-11eb-bba3-2d95e5e39964",1
"11/2/2020, 8:50:45.644 AM","|3adbff3d6ae0b64d8911728449f73b35.2ada6389a8d68c42.2f38c6d5
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/1fafdfed-0774-4808-9cdf-556bb7a34411/generateanswer",False,500,"27.4697","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",3adbff3d6ae0b64d8911728449f73b35,2ada6389a8d68c42,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","91136591-1ce8-11eb-bba3-2d95e5e39964",1
"11/2/2020, 8:55:23.308 AM","|4b059f2a56957343b0123ed65c00b552.24b88ca160655144.2f38c6d6
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/182abc9c-6376-4a9a-8657-cbcf9be793e0/generateanswer",False,500,"10.2638","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",4b059f2a56957343b0123ed65c00b552,24b88ca160655144,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","3690f780-1ce9-11eb-90cd-5d07c0cf7bf8",1
"11/2/2020, 8:55:23.320 AM","|4b059f2a56957343b0123ed65c00b552.249ca426d9901340.2f38c6d7
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/6c9b3e50-b7c4-4f68-a78c-0bf014dce518/generateanswer",False,500,"10.1387","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",4b059f2a56957343b0123ed65c00b552,249ca426d9901340,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","3690f781-1ce9-11eb-90cd-5d07c0cf7bf8",1
"11/2/2020, 8:56:12.275 AM","|34712c69cb18c04b98453ad0660da15c.fe1daece70f0d048.2f38c6d8
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/182abc9c-6376-4a9a-8657-cbcf9be793e0/generateanswer",False,500,"10.324","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",34712c69cb18c04b98453ad0660da15c,fe1daece70f0d048,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","4d08765d-1ce9-11eb-90cd-5d07c0cf7bf8",1
"11/2/2020, 8:56:12.288 AM","|34712c69cb18c04b98453ad0660da15c.ee4bf1d01e80e746.2f38c6d9
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/6c9b3e50-b7c4-4f68-a78c-0bf014dce518/generateanswer",False,500,"9.152800000000001","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",34712c69cb18c04b98453ad0660da15c,ee4bf1d01e80e746,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","4d08765e-1ce9-11eb-90cd-5d07c0cf7bf8",1
"11/2/2020, 8:46:04.078 AM","|37a8c27062c1a245b063f81c04daedf4.7c54979d7eb3aa4d.2f38c6c6
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/182abc9c-6376-4a9a-8657-cbcf9be793e0/generateanswer",False,500,"1163.1091000000001","1sec-3sec",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",37a8c27062c1a245b063f81c04daedf4,7c54979d7eb3aa4d,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","e9f5b831-1ce7-11eb-ae5e-b569f8f263e3",1
"11/2/2020, 8:46:04.097 AM","|37a8c27062c1a245b063f81c04daedf4.5ec89de830b6f143.2f38c6c7
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/6c9b3e50-b7c4-4f68-a78c-0bf014dce518/generateanswer",False,500,"1143.3196","1sec-3sec",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",37a8c27062c1a245b063f81c04daedf4,5ec89de830b6f143,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","e9f5b830-1ce7-11eb-ae5e-b569f8f263e3",1
"11/2/2020, 8:46:18.696 AM","|770bfaab70397d48af40b13de8ebc7d0.7c076bbd34e8d447.2f38c6c8
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/182abc9c-6376-4a9a-8657-cbcf9be793e0/generateanswer",False,500,"15.395100000000001","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",770bfaab70397d48af40b13de8ebc7d0,7c076bbd34e8d447,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","e9f5b832-1ce7-11eb-ae5e-b569f8f263e3",1
"11/2/2020, 8:46:18.711 AM","|770bfaab70397d48af40b13de8ebc7d0.19d3837b73608a4b.2f38c6c9
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/6c9b3e50-b7c4-4f68-a78c-0bf014dce518/generateanswer",False,500,"10.586300000000001","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",770bfaab70397d48af40b13de8ebc7d0,19d3837b73608a4b,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","e9f5b833-1ce7-11eb-ae5e-b569f8f263e3",1
"11/2/2020, 8:46:35.107 AM","|e0b55023e01ba14b8dbabb0ae0629d4c.1ec6c4329b748b49.2f38c6ca
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/6c9b3e50-b7c4-4f68-a78c-0bf014dce518/generateanswer",False,500,"16.1945","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",e0b55023e01ba14b8dbabb0ae0629d4c,1ec6c4329b748b49,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","e9f5b834-1ce7-11eb-ae5e-b569f8f263e3",1
"11/2/2020, 8:46:35.120 AM","|e0b55023e01ba14b8dbabb0ae0629d4c.b50b4120c591bc4a.2f38c6cb
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/182abc9c-6376-4a9a-8657-cbcf9be793e0/generateanswer",False,500,"9.340300000000001","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",e0b55023e01ba14b8dbabb0ae0629d4c,b50b4120c591bc4a,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","e9f5b835-1ce7-11eb-ae5e-b569f8f263e3",1
"11/2/2020, 8:49:58.384 AM","|e1aadba266275a41848131552b6ceccf.5b03ec5cc010564d.2f38c6d2
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/182abc9c-6376-4a9a-8657-cbcf9be793e0/generateanswer",False,500,"10.902800000000001","<250ms",request,"{""MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",e1aadba266275a41848131552b6ceccf,5b03ec5cc010564d,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","74e558b0-1ce8-11eb-bba3-2d95e5e39964",1
"11/2/2020, 8:49:58.395 AM","|e1aadba266275a41848131552b6ceccf.447ec6503b8de148.2f38c6d3
",,"POST Proxy [anything]","https://myservername001-qnahost.azurewebsites.net/qnamaker/knowledgebases/6c9b3e50-b7c4-4f68-a78c-0bf014dce518/generateanswer",False,500,"9.751100000000001","<250ms",request,"{""_MS.ProcessedByMetricExtractors"":""(Name:'Requests', Ver:'1.0')""}",null,"POST Proxy [anything]",e1aadba266275a41848131552b6ceccf,447ec6503b8de148,Bot,,,,,,PC,,,"0.0.0.0","San Jose",California,"United States",,"myservername001-qnahost",RD00155DE1C833,"c7f5e703-fd15-4ba4-b72c-58b9a8948f69","myservername001-insights","91325e88-1eb5-4c64-9243-d77aeb537b35","web:2.5.1-195","74e558b1-1ce8-11eb-bba3-2d95e5e39964",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,891 questions
{count} votes

2 answers

Sort by: Most helpful
  1. EasyOley 6 Reputation points
    2020-11-10T18:32:04.07+00:00

    Hi yutong,

    Thanks for sharing with valuable information.We are part of community..yes please help..help me..help...I'm tired already.....thanks a lot friend


  2. YutongTie-MSFT 52,596 Reputation points
    2020-11-12T17:43:50.703+00:00

    We have created a support ticket for this case, will update here later for the solution once we get it. Thanks.

    Regards,
    Yutong

    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.