Getting named shadow doesn't work
duyenlv opened this issue · 5 comments
duyenlv commented
Describe the bug
- I created a thing with classic shadow and named shadow (
Limits
) - I use AWSIoTDataManager to get both shadows.
- App gets the classic shadow successful.
- Failure to get "Limits" shadow with error:
{"code":404,"message":"No shadow exists with name: 'Limits'","clientToken":"8F67BE93-86DC-4258-96D4-299D93B8A880-ios-1"}
I find out the topic string you are using in SDK is incorrect. See screenshots
To Reproduce
Observed Behavior
Expected Behavior
Stack Trace
Code Snippet
theAWSIoTDataManager.register(withShadow: "Limits", options: options) { [weak self] (name, operationType, status, clientToken, payload) in
...
}
DispatchQueue.main.asyncAfter(deadline: .now() + gettingShadowDelay) { [weak self] in
theAWSIoTDataManager.getShadow("Limits");
}
Unique Configuration
Areas of the SDK you are using (AWSMobileClient, Cognito, Pinpoint, IoT, etc)?
IoT
Environment(please complete the following information):
- SDK Version: 2.36.3
- Dependency Manager: Cocoapods
- Swift Version : 5
- Xcode Version: 15.4
Device Information (please complete the following information):
- Device: iPhones, Simulators
- iOS Version: iOS
- Specific to simulators:
Additional context
Relevant Console Output
Logs
harsh62 commented
Thanks for raising the issue. Our team will look into the issue and provide an update.