I had this issue and it was due to a silly mistake in the curl call. See below:
Wrong call: curl http:127.0.0.1:8000 Corrected call: curl http://127.0.0.1:8000
I missed the // and the curl was not recognizing the service due to this.