AWS Translate sometimes gets an error TCP timeout on Lambda function

0

I am using translate service. I am running translateTex function about 20 texts (each text are not very large they about 40 characters) on 47 languages on foreach, it is sometimes working fine but sometimes getting an error TCP timeout. this code is running on NodeJs on lambda function, the time is set up to 10 minutes on lambda function. Anyone can help me please?

asked 2 years ago246 views
1 Answer
0

Hello,

The issue wouldn't be clear without seeing your Lambda function code. In cases of network connection issues like the one you are facing, the best practice is to prepare for occurrence beforehand by making sure that your Lambda function is idempotent. Here's a link to a guide on making Lambda functions idempotent:

https://aws.amazon.com/premiumsupport/knowledge-center/lambda-function-idempotent/

answered 2 years ago
AWS
SUPPORT ENGINEER
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.

Guidelines for Answering Questions