Skip to content

[basic_discovery.py] passing --max-pub-ops results error #288

Closed
@doronbl

Description

@doronbl

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
I'm running basic_discovery.py with custom --max-pub-ops value (e.g. --max-pub-ops 20) and getting this error:

Connected!
Traceback (most recent call last):
  File "basic_discovery.py", line 109, in <module>
    while loop_count < args.max_pub_ops:
TypeError: '<' not supported between instances of 'int' and 'str'

SDK version number
V2

Platform/OS/Device
uname -a:
Linux ip-10-0-2-49 5.11.0-1022-aws #23~20.04.1-Ubuntu SMP Mon Nov 15 14:04:48 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

Graviton2 ec2 instance emulating the device

To Reproduce (observed behavior)
Run basic_discovery.py and add --max-pub-ops 20 to the list of parameters

Expected behavior
Message loop shpould publish 20 messages

Logs/output

Connected!
Traceback (most recent call last):
  File "basic_discovery.py", line 109, in <module>
    while loop_count < args.max_pub_ops:
TypeError: '<' not supported between instances of 'int' and 'str'

REMEMBER TO SANITIZE YOUR PERSONAL INFO

awscrt.io.init_logging(awscrt.io.LogLevel.Warn, 'stderr')

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-for-stalenessguidanceQuestion that needs advice or information.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 2 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions