Getting "Cannot connect invoice 2022-08-31 grpc server from 127.0.0.1:50051 after 150 seconds." when running container locally.

Kash Hatton 0 Reputation points
2024-05-21T20:40:17.5+00:00

I keep getting this error when running my container locally using docker compose up.

"formrecognizerinvoice[0]

azure-cognitive-service-invoice  |       Cannot connect invoice 2022-08-31 grpc server from 127.0.0.1:50051 after 150 seconds."

This is my YML file:

version: "3.9"
services:
  azure-cognitive-service-invoice:
    container_name: azure-cognitive-service-invoice
    image: mcr.microsoft.com/azure-cognitive-services/form-recognizer/invoice-3.0
    environment:
        - EULA=accept
        - billing=
        - apiKey=
        - AzureCognitiveServiceLayoutHost=
http://azure-cognitive-service-layout:5000
    ports:
      - "5000:5050"
  azure-cognitive-service-layout:
    container_name: azure-cognitive-service-layout
    image: mcr.microsoft.com/azure-cognitive-services/form-recognizer/layout-3.0
    environment:
        - EULA=accept
        - billing=
        - apiKey=


Any thoughts or suggestions?

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,480 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,530 questions
{count} votes