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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠