Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket.gaierror: [Errno -2] Name does not resolve #26

Open
edwin6938 opened this issue Jul 9, 2024 · 0 comments
Open

socket.gaierror: [Errno -2] Name does not resolve #26

edwin6938 opened this issue Jul 9, 2024 · 0 comments

Comments

@edwin6938
Copy link

Hi ,
Integration through "Add Add-on to repository", leads to the following error.
Thanks for any clue.

2024-07-09 14:44:27,638 [INFO] [root:92] Init MQTT Traceback (most recent call last): File "/usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/main.py", line 68, in <module> MQTT_CLIENT = init_mqtt(config=CONFIG, api=API) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/mqtt/__init__.py", line 96, in init_mqtt mqtt_client = MQTTClient(config=mqtt_config, api=api) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt/mqtt/__init__.py", line 29, in __init__ self.client.connect(config.get("host", "127.0.0.1"), config.get("port", 1883), 60) File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect return self.reconnect() ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect sock = self._create_socket_connection() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/socket.py", line 827, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/socket.py", line 962, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ socket.gaierror: [Errno -2] Name does not resolve [12:44:29] WARNING: Halt add-on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant