Closed steven-aerts closed 4 years ago
Hi @steven-aerts based on the status code 503 - Service Unavailable - this is probably an issue on the service side. Are you seeing these errors consistently or were they transient?
The "Unable to unmarshall exception" message is being shown because the error code is missing from the response (Error Code: null
), I will contact the IoT Team and ask about it.
Hi @debora-ito the errors were transient (happened during 2 seconds on all calls to the update- and createCertificate endpoints).
The reason we opened this ticket is that we think the SDK couild react better as:
Picking this up after a very long pause, sorry about that @steven-aerts.
5xx errors are hard to reproduce, so I cannot confirm if it's being retried or not. Are you still seeing the issue, even if intermittently?
Hi @debora-ito ,
we have seen this still a few times. But we are retrying. Our main concern at the time was that the SDK is not throwing an AWSIotException nor is it retrying.
Steven
So, besides the IoT team not sending the error code in the 503 exception, is there anything else pending from the SDK team?
We would expect the error to be handled differently by the SDK.
Instead of throwing a non-documented AmazonServiceException, throw a generic AWSIotException or even better retry the request (as it is unknown and 5xx).
Steven
You said in the previous comment the the error was being retried, I'm confused.
It looks like this issue hasn’t been active in longer than a week. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please add a comment to prevent automatic closure, or if the issue is already closed please feel free to reopen it.
Hi,
last Tuesday, a lambda which calls both register- as updateCertificate gave some errors we have not seen before:
Looking in the source code of the AWS Java SDK and googling around on the internet tells us that the AWSIotClient is not able to unmarshal the error returned by the AWS IoT API.
Is this correct/expected behaviour? How are we expected to handle these kind of exceptions? We would expect something more descriptive most likely of the AWSIotException type then AmazonServiceException. We also have the impression that the SDK does not retry this kind of effects.
AWS SDK version used 1.11.560.
Thanks,
Steven