MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.27k stars 21.45k forks source link

Failed to establish connection to image-processing endpoint #20523

Closed faister closed 5 years ago

faister commented 5 years ago

my image processing endpoint is http://classifier/image. My custom vision ML module is also named classifier but I can't connect to the endpoint from cameracapture module. I know the module name is case-sensitive. I have tried a few ways to try to make it work but to no avail; deploy on different Linux and Windows hosts for the IoT Edge runtime, explicitly expose port 80 on the classifier module. Any other clues?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

asergaz commented 5 years ago

Thanks for your feedback @faister . Can you let us know the result for iotedge list and confirm that the createOptions parameter for the cameraCapture module has the following JSON:

"createOptions": "{\"Env\":[\"IMAGE_PATH=test_image.jpg\",\"IMAGE_PROCESSING_ENDPOINT=http://classifier/image\"]}"

Thanks!

faister commented 5 years ago

Thanks. All good now. Sorry my bad, in my module.json I pointed to "amd64": "./Dockerfile.amd64" which is for the Python IoT module sample. The docs is right such that it points to "amd64": "./Dockerfile. Should have been more careful to read the steps. Cheers

AshokPeddakotla-MSFT commented 5 years ago

@faister We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.