-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HandleDeserialize Error from MiddleWare #2924
Comments
Hi @sathishdv , My guess is that the service behaves unexpectedly under high load and causes a panic in that middleware. Perhaps a connection that is closed prematurely. Can you please enable the SDK wire logs, and see if you can capture the logs before the panic? cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("us-east-1"), config.WithClientLogMode(aws.LogRequest|aws.LogResponseWithBody)) Thanks, |
Hi @RanVaknin Thanks for the response. Yes, the connection seems to be closed prematurely. I can see the error propagated and logs this error
Is it ok to retry such errors? I believe connection getting closed abruptly, prolly retry should should resolve, but the problem is SDK doesn't provide any nicer way to handle these kind of errors/exceptions. I have to check the strings.Contain for any of the keywords 😊 |
Hi @RanVaknin in fact the above error when retried the operation resulting in context cancelled. Looks like it is unable to establish connection, so pods getting restarted and the AWS Config initializes and then works. |
Hi @sathishdv , This is related to #2737 Currently in our backlog to investigate. We also got your internal support ticket. I'm going to close this as duplicate and ask you to check the other ticket for further updates on the matter. Thanks again, |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Hi @RanVaknin thanks for the update. |
Describe the bug
while running a high load dealing with DynamoDB with Provisioned Capacity started getting these errors
This error causing pods to crash and continous restarts.
SDK Version: v1.32.6
Regression Issue
Expected Behavior
This error should not happen, if not atleast these should be error type and retryable
Current Behavior
This error is not handled properly and causing crashes
Reproduction Steps
Can see this consistently on high load. Espcially after auto-scaled up on Provisioned capacity. In the event of provisionedExceeded error, we retry until the operation succeeds.
Possible Solution
No response
Additional Information/Context
No response
SDK version used
v1.32.6
Environment details (Version of Go (
go version
)? OS name and version, etc.)v1.32.6
The text was updated successfully, but these errors were encountered: