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
已提问 4 年前1772 查看次数
1 回答
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
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则