question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ConnectionFailedError(None) caused by gaierror(-3, 'Temporary failure in name resolution')

See original GitHub issue

Hi i am having this problem, this is for azure-iot-device 2.1.0

Any ideas? thanks in advance

ERROR:azure.iot.device.common.pipeline.pipeline_stages_mqtt:transport.connect raised error
02.03.20 14:34:40 (-0700)  core  ERROR:azure.iot.device.common.pipeline.pipeline_stages_mqtt:Traceback (most recent call last):
02.03.20 14:34:40 (-0700)  core    File "/usr/local/lib/python3.7/dist-packages/azure/iot/device/common/mqtt_transport.py", line 367, in connect
02.03.20 14:34:40 (-0700)  core      host=self._hostname, port=8883, keepalive=DEFAULT_KEEPALIVE
02.03.20 14:34:40 (-0700)  core    File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 937, in connect
02.03.20 14:34:40 (-0700)  core      return self.reconnect()
02.03.20 14:34:40 (-0700)  core    File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 1071, in reconnect
02.03.20 14:34:40 (-0700)  core      sock = self._create_socket_connection()
02.03.20 14:34:40 (-0700)  core    File "/usr/local/lib/python3.7/dist-packages/paho/mqtt/client.py", line 3522, in _create_socket_connection
02.03.20 14:34:40 (-0700)  core      return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
02.03.20 14:34:40 (-0700)  core    File "/usr/lib/python3.7/socket.py", line 707, in create_connection
02.03.20 14:34:40 (-0700)  core      for res in getaddrinfo(host, port, 0, SOCK_STREAM):
02.03.20 14:34:40 (-0700)  core    File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
02.03.20 14:34:40 (-0700)  core      for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
02.03.20 14:34:40 (-0700)  core  socket.gaierror: [Errno -3] Temporary failure in name resolution
02.03.20 14:34:40 (-0700)  core  
02.03.20 14:34:40 (-0700)  core  The above exception was the direct cause of the following exception:
02.03.20 14:34:40 (-0700)  core  
02.03.20 14:34:40 (-0700)  core  Traceback (most recent call last):
02.03.20 14:34:40 (-0700)  core    File "/usr/local/lib/python3.7/dist-packages/azure/iot/device/common/pipeline/pipeline_stages_mqtt.py", line 117, in _run_op
02.03.20 14:34:40 (-0700)  core      self.transport.connect(password=self.sas_token)
02.03.20 14:34:40 (-0700)  core    File "/usr/local/lib/python3.7/dist-packages/azure/iot/device/common/mqtt_transport.py", line 387, in connect
02.03.20 14:34:40 (-0700)  core      raise exceptions.ConnectionFailedError(cause=e)
02.03.20 14:34:40 (-0700)  core  azure.iot.device.common.transport_exceptions.ConnectionFailedError: ConnectionFailedError(None) caused by gaierror(-3, 'Temporary failure in name resolution')
02.03.20 14:34:40 (-0700)  core  
02.03.20 14:34:40 (-0700)  core  ERROR:azure.iot.device.common.pipeline.pipeline_ops_base:ConnectOperation: completing with error ConnectionFailedError(None) caused by gaierror(-3, 'Temporary failure in name resolution')
02.03.20 14:34:40 (-0700)  core  ERROR:azure.iot.device.common.pipeline.pipeline_stages_base:ConnectionLockStage(ConnectOperation): op failed.  Unblocking queue with error: ConnectionFailedError(None) caused by gaierror(-3, 'Temporary failure in name resolution')
02.03.20 14:34:40 (-0700)  core  ERROR:azure.iot.device.common.pipeline.pipeline_ops_base:ConnectOperation: completing with error ConnectionFailedError(None) caused by gaierror(-3, 'Temporary failure in name resolution')
02.03.20 14:34:40 (-0700)  core  ERROR:azure.iot.device.common.async_adapter:Callback completed with error ConnectionFailedError(None) caused by gaierror(-3, 'Temporary failure in name resolution')
02.03.20 14:34:40 (-0700)  core  ERROR:azure.iot.device.common.async_adapter:["azure.iot.device.common.transport_exceptions.ConnectionFailedError: ConnectionFailedError(None) caused by gaierror(-3, 'Temporary failure in name resolution')\n"]

AB#7366699

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:34 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
BertKleeweincommented, Jun 18, 2020

@MiguelCHR - you can remove almost all of the logging by calling logging.getLogger("azure.iot.device").setLevel(level=logging.ERROR). If that is still too much, you can pass level=logging.CRITICAL.

0reactions
az-iot-builder-01commented, Jul 14, 2020

@BertKleewein, @MiguelCHR, @mikechari, @dschenzer, @nishad1092, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the meaning of "gaierror: [Errno -3] Temporary failure ...
gaierror = Get Address Info Error. Temporary failure in name resolution = No known DNS was able to answer with the IP address...
Read more >
[Errno -3] Temporary failure in name resolution : Forums
Hi all,. I'm running a scheduled task and encountered this error for the first time: "[Errno -3] Temporary failure in name resolution".
Read more >
WPS Office - Microsoft Learn
socket.gaierror: [Errno 11001] getaddrinfo failed. The above exception was the direct cause of the following exception: Traceback (most recent call last):.
Read more >
[Errno -3] Temporary failure in name resolution - Kaggle
Hi, In the Deep Learning course on Exercise: TensorFlow Programming section I'm facing some obstacle. when I run the last code cell, ...
Read more >
Getting error "socket.gaierror: [Errno -3] Temporary failure in ...
However, while upgrading to latest Jupyterhub 2.3.1, I'm getting name resolution error on Hub API URL while notebook server spawning. Below ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found