I am using Free pricing tier of Document intelligence in Azure. After parsing 5 PDFs I started receiving the exception below for all files. Is there anything I can do before contacting the support? Is it some transient issue that needs to be retried after some period of time?
var operation = await documentAnalysisClient.AnalyzeDocumentAsync(WaitUntil.Completed, "prebuilt-invoice", ms);
var result = operation.Value;
Azure.RequestFailedException: An unexpected error occurred.
Status: 200 (OK)
ErrorCode: InternalServerError
Additional Information:
AdditionInformation: InternalServerError: An unexpected error occurred.
Details:
FailedToSerializeAnalyzeResult: Failed to serialize analyze results, please contact support.
Raw:
{"code":"InternalServerError","message":"An unexpected error occurred.","details":[{"code":"FailedToSerializeAnalyzeResult","message":"Failed to serialize analyze results, please contact support."}]}
Content:
{"status":"failed","createdDateTime":"2023-10-31T19:03:09Z","lastUpdatedDateTime":"2023-10-31T19:03:11Z","error":{"code":"InternalServerError","message":"An unexpected error occurred.","details":[{"code":"FailedToSerializeAnalyzeResult","message":"Failed to serialize analyze results, please contact support."}]}}
Headers:
ms-azure-ai-errorcode: REDACTED
x-envoy-upstream-service-time: 3042
apim-request-id: 3f25ab2e-cfdd-42d1-94f4-eeb6a6dce97b
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
x-ms-region: REDACTED
Date: Tue, 31 Oct 2023 19:03:15 GMT
Content-Length: 313
Content-Type: application/json; charset=utf-8
at Azure.Core.OperationInternal`1.GetResponseFromState(OperationState`1 state)
at Azure.Core.OperationInternal`1.UpdateStatusAsync(Boolean async, CancellationToken cancellationToken)
at Azure.Core.OperationInternalBase.UpdateStatusAsync(CancellationToken cancellationToken)
at Azure.Core.OperationPoller.WaitForCompletionAsync(Boolean async, OperationInternalBase operation, Nullable`1 delayHint, CancellationToken cancellationToken)
at Azure.Core.OperationInternalBase.WaitForCompletionResponseAsync(Boolean async, Nullable`1 pollingInterval, String scopeName, CancellationToken cancellationToken)
at Azure.Core.OperationInternal`1.WaitForCompletionAsync(Boolean async, Nullable`1 pollingInterval, CancellationToken cancellationToken)
at Azure.Core.OperationInternal`1.WaitForCompletionAsync(CancellationToken cancellationToken)
at Azure.AI.FormRecognizer.DocumentAnalysis.AnalyzeDocumentOperation.WaitForCompletionAsync(CancellationToken cancellationToken)
at Azure.AI.FormRecognizer.DocumentAnalysis.DocumentAnalysisClient.AnalyzeDocumentAsync(WaitUntil waitUntil, String modelId, Stream document, AnalyzeDocumentOptions options, CancellationToken cancellationToken)
at MyProject.InvoiceRecognition.Web.Controllers.InvoiceController.Recognize(Int32 id)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|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.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_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.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)