Hi I’m sending request from Golang to another node.js server here is my code.
response, err := http.Post("http://127.0.0.1:5051/hello_world", "application/json", bytes.NewBuffer(nil))
if err == nil {
data, _ := ioutil.ReadAll(response.Body)
logger.Info(string(data))
}else{
logger.Info("" ,err)
}
Note: when i send request from simple golang project/Postman/Browser its working fine.
But when i working from Nakama golang project its give an error
**Error: ** EXTRA *url.Error=Post "http://127.0.0.1:5051/hello_world\": dial tcp 127.0.0.1:5051: connect: connection refused