Getting Service request failed. 404 (Not Found) error while calling azure vision ocr running in a docker container

kushal kaleshwari 1 Reputation point
2025-01-16T15:47:59.9133333+00:00

Getting Service request failed. 404 (Not Found) error while calling azure vision ocr running in a docker container. Everything works fine if I make a call to azure vision cloud ocr service.

I'm using endpoint "http://localhost:5000" for container call. When I enter this url in browser, it shows "Your Azure Cognitive Service Container is up and running" page with samples etc.

Azure Computer Vision
Azure Computer Vision
An Azure artificial intelligence service that analyzes content in images and video.
400 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,056 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 27,601 Reputation points
    2025-01-16T16:32:08.09+00:00

    Try to check the exact API path you are calling. For example:

    • Cloud OCR: https://<your-cognitive-service-endpoint>/vision/v3.2/read/analyze
    • Container OCR might require something like /vision/v3.2/read/analyze
    • Verify the path /vision/v3.2/read/analyze or the equivalent for the version of the container you're using is appended to http://localhost:5000
    http://localhost:5000/vision/v3.2/read/analyze
    

    You can use the Docker logs to see what is happening within the container when the request is made.

    docker logs <container-id>
    

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.