form-recognizer container custom-template-3.0 fails with "No service for type 'Endpoint.ModelManagement.HeadersActionFilter' has been registered"

Pace Davis 10 Reputation points
2023-08-06T16:44:46.0433333+00:00

Hello

Following this link:

https://learn.microsoft.com/en-us/azure/applied-ai-services/form-recognizer/containers/form-recognizer-container-install-run?tabs=custom&view=form-recog-3.0.0

I have reproduced the exact configuration for the docker-compose file and also for all requisites necessary to run the Custom container, version 3.0/3.1

The containers (layout, custom-template and studio) start normally, but when I access the Form Recognizer Studio and try to train a new model, I am getting the following error in the logs:

No service for type 'Endpoint.ModelManagement.HeadersActionFilter' has been registered

If I try to just go to the Models tab to view, I see this error:

Microsoft.CloudAI.Containers.Exceptions.CollectionNotFoundException: collection with name 'formrecognizer' could not be found in storage.

The "./shared" storage seems to be fine b/c a "layout" sub directory gets created by the system at some point.

Any help or tip to get this solved will be welcome. Thank you.

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
2,111 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pace Davis 10 Reputation points
    2023-08-08T09:06:10.2566667+00:00

    We figured it out with the help of Copilot. We had to create a new file under "shared" :

    formrecognizer/meta

    {
      "version": 1,
      "collections": {
        "formrecognizer": {}
      }
    }
    
    

    Then to fith the Header error, we used the older Custom Template 3.0 version, released on 4/11/2023

    Maybe the new version released yesterday will address the issue, we will test later.

    2 people found this answer helpful.
    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.