I'm trying out compute engine and I've successfully setup a vm, created a flask app as an API that accepts POST requests so I can further send emails to clients,
I keep getting a connection refused error whenever I try to make an http post request to the instace IP, I've tried using external and internal IPs, setting up a new firewall rule to allow all ports IN VPC network rules and still nothing. what could be the problem?
this is the address shown to me by my flask app,
and this is my client side code for the request.
also i want to note that the code works perfectly on my local machine.