表单识别器自定义模型在预测期间返回错误,错误代码为 3014
Form Recognizer Custom model returning error during the prediction and the error code is 3014
我训练了多个自定义模型并将这些自定义模型用于以下代码。
Response<RecognizedFormCollection> forms = await client.StartRecognizeCustomFormsFromUri(modelId, invoiceUri).WaitForCompletionAsync();
我训练的第一个自定义模型仍然运行良好。其余的不工作。这是我收到的错误。
An unhandled exception occurred while processing the request.
RequestFailedException: Generic error during prediction. Status: 200
(OK) ErrorCode: 3014
Additional Information: error-0: 3014: Generic error during
prediction.
Content:
Headers: ms-azure-ai-errorcode: REDACTED
x-envoy-upstream-service-time: 27 apim-request-id:
476f6fbf-b833-413a-8b04-84c7959d1334 Strict-Transport-Security:
max-age=31536000; includeSubDomains; preload X-Content-Type-Options:
nosniff Date: Wed, 17 Mar 2021 02:05:37 GMT Content-Length: 213
Content-Type: application/json; charset=utf-8
Azure.RequestFailedException: Generic error during prediction. Status:
200 (OK) ErrorCode: 3014
Additional Information: error-0: 3014: Generic error during
prediction.
Content:
Headers: ms-azure-ai-errorcode: REDACTED
x-envoy-upstream-service-time: 27 apim-request-id:
476f6fbf-b833-413a-8b04-84c7959d1334 Strict-Transport-Security:
max-age=31536000; includeSubDomains; preload X-Content-Type-Options:
nosniff Date: Wed, 17 Mar 2021 02:05:37 GMT Content-Length: 213
Content-Type: application/json; charset=utf-8
at
Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation.UpdateStatusAsync(Boolean
async, CancellationToken cancellationToken) at
Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation.UpdateStatusAsync(CancellationToken
cancellationToken) at
Azure.Core.OperationHelpers.DefaultWaitForCompletionAsync[TResult](Operation1 operation, TimeSpan pollingInterval, CancellationToken cancellationToken) at Azure.AI.FormRecognizer.OperationExtensions.WaitForCompletionAsync(Task
1
operation, CancellationToken cancellationToken) at
OCR.Controllers.FormRecognizerController.Index(FormModel frmFile) in
C:\Users\nmuidil\source\repos\OCR\OCR\Controllers\FormRecognizerController.cs:line
115 at
Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper
mapper, ObjectMethodExecutor executor, Object controller, Object[]
arguments) at
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g_Awaited|12_0(ControllerActionInvoker
invoker, ValueTask`1 actionResultValueTask) at
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.gAwaited|10_0(ControllerActionInvoker
invoker, Task lastTask, State next, Scope scope, Object state, Boolean
isCompleted) at
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed
context) at
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State&
next, Scope& scope, Object& state, Boolean& isCompleted) at
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.gAwaited|13_0(ControllerActionInvoker
invoker, Task lastTask, State next, Scope scope, Object state, Boolean
isCompleted) at
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|24_0(ResourceInvoker
invoker, Task lastTask, State next, Scope scope, Object state, Boolean
isCompleted) at
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed
context) at
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State&
next, Scope& scope, Object& state, Boolean& isCompleted) at
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|19_0(ResourceInvoker
invoker, Task lastTask, State next, Scope scope, Object state, Boolean
isCompleted) at
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker
invoker, Task task, IDisposable scope) at
Microsoft.AspNetCore.Routing.EndpointMiddleware.g_AwaitRequestTask|6_0(Endpoint
endpoint, Task requestTask, ILogger logger) at
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext
context) at
Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext
context) at
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext
context)
您是否使用新的 API 2.1-preview.3 进行训练并使用旧版本的 API 进行分析。如果是,请您也使用相同的新版本 API 2.1-preview.3 分析新模型在以前的 API 版本中不可用。旧型号可用于新 API 版本以实现向后兼容性。
如果这不是问题,请联系 Form Recognizer Contact Us formrecog_contact@microsoft.com 或开具支持票并请附上型号 ID。
我训练了多个自定义模型并将这些自定义模型用于以下代码。
Response<RecognizedFormCollection> forms = await client.StartRecognizeCustomFormsFromUri(modelId, invoiceUri).WaitForCompletionAsync();
我训练的第一个自定义模型仍然运行良好。其余的不工作。这是我收到的错误。
An unhandled exception occurred while processing the request. RequestFailedException: Generic error during prediction. Status: 200 (OK) ErrorCode: 3014
Additional Information: error-0: 3014: Generic error during prediction.
Content:
Headers: ms-azure-ai-errorcode: REDACTED x-envoy-upstream-service-time: 27 apim-request-id: 476f6fbf-b833-413a-8b04-84c7959d1334 Strict-Transport-Security: max-age=31536000; includeSubDomains; preload X-Content-Type-Options: nosniff Date: Wed, 17 Mar 2021 02:05:37 GMT Content-Length: 213 Content-Type: application/json; charset=utf-8
Azure.RequestFailedException: Generic error during prediction. Status: 200 (OK) ErrorCode: 3014
Additional Information: error-0: 3014: Generic error during prediction.
Content:
Headers: ms-azure-ai-errorcode: REDACTED x-envoy-upstream-service-time: 27 apim-request-id: 476f6fbf-b833-413a-8b04-84c7959d1334 Strict-Transport-Security: max-age=31536000; includeSubDomains; preload X-Content-Type-Options: nosniff Date: Wed, 17 Mar 2021 02:05:37 GMT Content-Length: 213 Content-Type: application/json; charset=utf-8
at Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation.UpdateStatusAsync(Boolean async, CancellationToken cancellationToken) at Azure.AI.FormRecognizer.Models.RecognizeCustomFormsOperation.UpdateStatusAsync(CancellationToken cancellationToken) at Azure.Core.OperationHelpers.DefaultWaitForCompletionAsync[TResult](Operation
1 operation, TimeSpan pollingInterval, CancellationToken cancellationToken) at Azure.AI.FormRecognizer.OperationExtensions.WaitForCompletionAsync(Task
1 operation, CancellationToken cancellationToken) at OCR.Controllers.FormRecognizerController.Index(FormModel frmFile) in C:\Users\nmuidil\source\repos\OCR\OCR\Controllers\FormRecognizerController.cs:line 115 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g_Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.gAwaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.gAwaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g_AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
您是否使用新的 API 2.1-preview.3 进行训练并使用旧版本的 API 进行分析。如果是,请您也使用相同的新版本 API 2.1-preview.3 分析新模型在以前的 API 版本中不可用。旧型号可用于新 API 版本以实现向后兼容性。 如果这不是问题,请联系 Form Recognizer Contact Us formrecog_contact@microsoft.com 或开具支持票并请附上型号 ID。