Keijack
Keijack
It seems that the the service you call return a 401 error? I think you could try to find the access logs an the target service component and try to...
If you have a DNS deployed, you can set instance_host to that domain, otherwise, use `instance_ip`.
Please check this answer: https://stackoverflow.com/questions/55409641/asyncio-run-cannot-be-called-from-a-running-event-loop-when-using-jupyter-no You can run your code in aysnc mode: rest_port = 6100 async def main(): await eureka_client.init_async(eureka_server="http://localhost:8761/eureka", app_name="pdf-miner", instance_port=rest_port) app.run(port=rest_port) await main()
> @keijack I faced same problem. I start a django web service with gunicorn[gevent]. I register eureka server with init, and do_service to recall other service occured the RuntimeError. Traceback...
Close for long time silence.
Are there any other logs when pulling the registry? When is your service "WINDEYFOAM-WEB" up? Is it later than the python service? The library will pull the registry every 30...
You can set `renewal_interval_in_secs` in the `init` function to change the `heartbeat` interval.
In async fun, please use res = await eureka_client.do_service_async(...)
That means that the host cannot find by ip automatically, you should specify the `instance_host` in `init` method.
I agree with @struberg , it's not convenient to use sometimes. If `optionalAdd` may add complexity to the interface, what if provide a configuration, and let the implementation to do...