keijack / python-eureka-client

A eureka client written in python. Support registering your python component to Eureka Server, as well as calling remote services by pulling the the Eureka registry.
MIT License
184 stars 43 forks source link

Nonetype returned for eureka_client.do_service() ??? #17

Closed tyu0912 closed 4 years ago

tyu0912 commented 5 years ago

Hi, what does it mean when I get None when running eureka_client.do_service ? The exact code is as below so not sure what could be happening. No errors are produced, the service does exist, and the different VPCs on AWS can talk to each other.

env = os.getenv('xxxxx_EUREKA_SERVICE')
path = "/api/yyyyy/v1/event?xyz=" + some_field

eureka_client.do_service(env, path, method='GET')

Thank you.

keijack commented 4 years ago

I'm sorry to response so late, what is the env in your code? is that a service name register in eureka server? @tyu0912

keijack commented 4 years ago

no response for long time.