Closed dr4hcu5-jan closed 3 years ago
The exceptions are caught and log for the purpose to do the connection retry. However, I add a on_error callback when initializing the eureka client. please check
def on_err(err_type: str, exception: Exception):
if err_type == eureka_client.ERROR_REGISTER:
eureka_client.stop()
eureka_client.init(...,
on_error=on_err
....)
You should update to version 0.10.0 to use this feature.
I close this, if you have any problem, please re-open it.
Hi there, I currently am trying to dectect if the initial connection to the Eureka Server was successful. I'm currently using the exceptions thrown during the process:
socket.timeout
.urllib.error.URLError
,py_eureka_client.eureka_client.EurekaServerConnectionException
with the following codeBut the Exceptions are not catched and the eureka client prints its own error messages and therefore not letting me inform the user or other depending services.
Have a nice weekend.
Traceback