Skip to content

.Net 6 IoTClient UpdateThingShadowAsync not response 404

0

I tested with fake thing, not exist on IoT Core, UpdateThingShadowAsync answer 200 OK. Why not responde 404?!

asked 2 years ago187 views

2 Answers
0

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:

  1. Verify that you're using the correct endpoint and AWS region in your IoT client configuration.
  2. Ensure that your AWS credentials have the appropriate permissions to perform shadow operations.
  3. Double-check the thing name you're using in the UpdateThingShadowAsync call to make sure it's correctly formatted.
  4. 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

answered 2 years ago

EXPERT

reviewed 2 years ago

0

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]

AWS
SUPPORT ENGINEER

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.