- Newest
- Most votes
- Most comments
The behavior you're experiencing with UpdateThingShadowAsync not responding with a 404 error for a non-existent thing is unexpected and may indicate an issue with the implementation or configuration of your IoT client.
Typically, when interacting with AWS IoT Core, operations on non-existent resources should return appropriate error responses. For the UpdateThingShadow operation, if the specified thing does not exist, you would expect to receive a ResourceNotFoundException with a 404 HTTP status code.
However, it's important to note that the shadow service in AWS IoT Core operates somewhat independently from the thing registry. It's possible to create and update shadows for things that don't exist in the registry. This design allows for more flexible device management, especially in scenarios where devices might be pre-provisioned or managed separately from their physical counterparts.
That being said, receiving a 200 OK response for updating a shadow of a non-existent thing is not the standard behavior. Here are a few things you can check:
- Verify that you're using the correct endpoint and AWS region in your IoT client configuration.
- Ensure that your AWS credentials have the appropriate permissions to perform shadow operations.
- Double-check the thing name you're using in the UpdateThingShadowAsync call to make sure it's correctly formatted.
- Consider using the AWS IoT Console or CLI to manually attempt to update the shadow for the non-existent thing and see if you get the same result.
If the issue persists, it may be worth reviewing your .NET 6 IoT client implementation or consulting AWS support for further assistance. The behavior you're seeing could potentially be a bug in the client library or an unexpected interaction with the AWS IoT Core service.
Sources
UpdateThingShadow - AWS IoT
UpdateThing - AWS IoT
AWS IoT Core Features - Amazon Web Services
To answer your question, we require details that are non-public information. Please open a support case with AWS using the following [Link.https://console.aws.amazon.com/support/home#/case/create]
Relevant content
asked 3 years ago
asked 6 years ago
