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
asked 4 years ago1749 views
1 Answer
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
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions