aws / aws-iot-device-sdk-python

SDK for connecting to AWS IoT from a device using Python.
Apache License 2.0
683 stars 426 forks source link

AWS MQTT Python awsiotsdk and awscrt packages fail sporadically with repeating messages in trace logs #292

Closed davidparks21 closed 3 years ago

davidparks21 commented 3 years ago

I've posted a question on stack overflow with no luck figuring out an answer.

I'll leave the details on stack overflow to avoid cross posting everything, but in short I'm unable to figure out why I get sporadic but consistent failures from the API. I believe I'm following pretty closely to the pubsub.py example. The errors don't give much detail so I don't know how to go about debugging a problem like this.

This is how I'm creating the connection. See the SO article above for the rest of the logs.

mqtt_connection_builder.websockets_with_default_aws_signing(
                    endpoint='#############-ats.iot.us-west-2.amazonaws.com',
                    client_bootstrap=client_bootstrap,
                    region=AWS_REGION,
                    credentials_provider=credentials_provider,
                    ca_filepath=f'{self.certs_temp_dir.name}/AmazonRootCA1.pem',
                    on_connection_interrupted=self._on_connection_interrupted,
                    on_connection_resumed=self._on_connection_resumed,
                    client_id=f'test-{uuid.uuid4()}',
                    clean_session=False,
                    keep_alive_secs=6
                )
github-actions[bot] commented 3 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.