-
Notifications
You must be signed in to change notification settings - Fork 577
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
@aws-sdk/client-translate : socket hang up Error [TimeoutError] #4219
Comments
Hi @bsriniv, thanks for opening this issue. This issue commonly occurs when there is a connectivity problem at the time of the request, and I actually see it did retry 3 times and got the same result, which is weird. I tried to get a reproduction of this error on my end but I could not, so, are there any other details you think I should consider to replicate this error on my end? Thanks! |
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing. |
Hi @yenfryherrerafeliz, |
Hi @bsriniv, I have reopened the issue. Do you have any other details that could help me in reproducing this on my end? Thanks! |
Hey, I'm having the same issue when using |
Started seeing this as well (on the lambda client) since transitioning to V3 of the SDK. Am using 3.188.0, since that's the version bundled with the runtime. I can't pin down what is causing it, and we're manually destroying our lambda client after each use:
|
Hi @benheymink, @oielbanna, which version of the SDK are you using?, if is not the latest, could you please try with the latest version?. We have introduced the following change here that makes the underlying sockets to send keep-alive packets and keep the connection alive longer, so I am wondering if this could be helpful for you. Please let me know. Thanks! |
@yenfryherrerafeliz We're using the version made available by the AWS Lambda runtime, 3.188.0. (So I doubt it includes the fix you mentioned). How often are the AWS runtimes/environments updated? |
@benheymink, I do not have this information available as of right now, but I will ask and get back to you regarding this. However, would it be possible for you to use a lambda layer where you can deploy the latest SDK version?. Here is the documentation that can help you to accomplish this. Please let me know. Thanks! |
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing. |
Hi, we got this error as well yesterday with the Didn't enable Package version:
Nodejs version:v19 Stack trace:
|
@dan-istoc-k24 this error is caused by a network issues, such as connection interruption or lost, etc., and enabling keep-alive may help sometimes, but all depends on what really happens with the connection at that time. Also, keep-alive is enabled by default. Thanks! |
I am closing this for now, but please if you still need help feel free of opening a new issue. Thanks! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Checkboxes for prior research
Describe the bug
We are experiencing the intermittent socket hang up Error [TimeoutError] when using the SDK, particularly the TranslateClient.
SDK version number
@aws-sdk/client-translate@3.192.0 and @aws-sdk/client-translate@3.213.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v14.21.1
Reproduction Steps
Observed Behavior
Expected Behavior
The API call should succeed without socket hang up Error [TimeoutError]: socket hang up
Possible Solution
No response
Additional Information/Context
Still we are seeing the socket hangup error after updating the latest translate client version 3.213.0 and also enabled the keepAlive with httpOptions as shown below:
The text was updated successfully, but these errors were encountered: