question

Sih-8305 avatar image
1 Vote"
Sih-8305 asked ramr-msft edited

AzureML endpoint shows 502 bad gateway

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-learningazure-machine-learning-inference
image.png (61.3 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Sih-8305 Thanks for the question. Can you please add more details about the sample/document that you are trying, also please share score.py file.

0 Votes 0 ·

1 Answer

ramr-msft avatar image
0 Votes"
ramr-msft answered

@Sih-8305 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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.