Skip to content

AttributeError: 'InternalAsyncMqttClient' object has no attribute '_endpoint_provider'. Did you mean: 'set_endpoint_provider'? #323

Answered by TwistedTwigleg
c-gc asked this question in Q&A
Discussion options

You must be logged in to vote

@github-actions proposed-answer
Looking at the code provided, I think the issue is that you have not configured shadow_client and instead configured client, which is separate from shadow_client. As seen in this sample, you need to setup the shadow client in order for it to connect.

In your case, I think can you adjust your code to the following:

import boto3
import json
import time
import paho.mqtt.client as mqtt
from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient, AWSIoTMQTTShadowClient

# Set up the AWS IoT shadow client
shadow_client = AWSIoTMQTTShadowClient("testIoTPySDK")
shadow_client.configureEndpoint("redacted", 8883)
shadow_client.configureCredentials("redacted", "redacted", "re…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jmklix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants