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


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

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