Skip to content

socket.herror: [Errno 11004] host not found #75

Open
@ThanhTu130200

Description

@ThanhTu130200

I ran to this error when registry to java eureka server:

WARNING: Error when getting host by ip
Traceback (most recent call last):
File "C:\Users\ASUS\AppData\Local\Programs\Python\Python38\lib\site-packages\py_eureka_client\netint_utils.py", line 35, in get_host_by_ip
return socket.gethostbyaddr(ip)[0]
socket.herror: [Errno 11004] host not found

And here is my code:

from vcmc import LocationVisualizer
import py_eureka_client.eureka_client as eureka_client

if __name__ == "__main__":
    eureka_client.init(eureka_server="http://10.1.5.60:9090/micro-registration/",
                            app_name="mwg-app-accounting-service-hello-world",
                            instance_port=80)
    
    app = LocationVisualizer()
    app.run()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions