problems (error) when trying the python pubsub code (example for iot sdk)

0

Hello to all,

I am trying to run the pubsub.py code (on AWS Cloud9, with Python 3.6), but now get the following error:

File "/usr/lib64/python3.6/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_IO_DNS_INVALID_NAME', message='Host name was invalid for dns resolution.', code=1059)
[IKP3db-g] 22:27:04,610678 - INFO - Uncaught exception. Entering post mortem debugging

Does anyone know what is the issue and how to fix this ? thanks

Repository: https://github.com/aws/aws-iot-device-sdk-python-v2/tree/master/samples

Edited by: sasko on Apr 27, 2020 12:05 AM

Edited by: sasko on Apr 27, 2020 12:08 AM

  • Did you solve this issue? I also got this error when using IoT Device Python SDK: awscrt.exceptions.AwsCrtError: AWS_IO_DNS_INVALID_NAME: Host name was invalid for dns resolution

sasko
gefragt vor 4 Jahren1772 Aufrufe
1 Antwort
0

I found the error: was a "slash" too much in the host_name, in front;
correct use: "xxxx-ats.iot.us-east-2.amazonaws.com"

sasko
beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen