Error: connect ECONNREFUSED 127.0.0.1:5000; API hosted on azure cloud and trying to hit from postman

Hi,

i have prepared custom API using python & flas, it is hosted on an azure server. we are trying to hit the api from post name.

  1. REST API is up and running
  2. error in postman: Error: connect ECONNREFUSED 127.0.0.1:5000

the same API is working when hosted locally.

for cloud, i have opened 5000 port . can anyone give any suggestions… if i am missing something to make change of.

127.0.01 is localhost addresss , if you are using cloud you should be using public IP not localhost . Make sure the endpoint address is correct