Closed tomscholz closed 3 years ago
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.
In a python application that uses the aws iot device sdk for python v2 (v1.7.1) I am running into an issue where I cannot update the device shadow.
After starting the program, the
DeviceShadowManager
will attempt to get the latest shadow state and set it locally. If adelta
state is present theDeviceShadowManager
will merge the lastreported
state anddelta
state and publish it. That works. However, when the manager subscribes for updates, after the initial setup, I am running into an error, where when thedesired
state changes, the manager cannot update thereported
state. Here is the error:I looked at the source, but just do not understand why a
TypeError
is raised, especially because this exact scenario seems to be handled by thetry
andexcept
block or am I getting it all wrong?The source of the error:
Below you can find my code and the log of the program.
This dataclass represents the shadow:
The shadow is managed by the
DeviceShadowManager
. Most of this is based on the shadow sample.Below you will find the log:
As you can see the stacktrace is pretty short, is there a way to debug this better? Any ideas to why it is giving me this particular error and maybe how to solve it? All help is appreciated!