Skip to content

basic_discovery.py error #631

@georgethomas08

Description

@georgethomas08

Describe the bug

Hi Team,
I have executed basic_discovery.py and it getting connected not able to publish message, find the error below

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

Connected and publish the message and receive same message.

Current Behavior

Connected!

Publish received on topic clients/MyClientDevice1/hello/world

b'{"message": "Hello World!", "sequence": 0}'

Traceback (most recent call last):

File "/home/ng/aws-iot-device-sdk-python-v2/samples/basic_discovery.py", line 107, in

print('Published topic {}: {} (puback reason: {})\n'.format(cmdData.input_topic, messageJson, repr(publish_completion_data.puback.reason_code)))

AttributeError: 'dict' object has no attribute 'puback'

Reproduction Steps

nil

Possible Solution

No response

Additional Information/Context

No response

SDK version used

V2

Environment details (OS name and version, etc.)

Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions