AzureML endpoint shows 502 bad gateway

Sih 6 Reputation points
2021-09-29T13:08:39.2+00:00

I deployed my model from local machine, but I can't predict with the API.

When I checked this endpoint with this command

curl -v http://6b3138f3-b4aa-44d3-873d-32255fb5ab50.eastus2.azurecontainer.io/score

it shows 502 bad gateway. (but without "/score", it looks fine)

136352-image.png

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,558 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,611 Reputation points
    2021-09-30T13:13:49.127+00:00

    @Sih Thanks for the question. A 502 status code indicates that the service has thrown an exception or crashed in the run() method of the score.py file.

    Here is link to the document to Troubleshooting remote model deployment.

    0 comments No comments