Call from a Lambda to s3.getObject Error [TimeoutError]: Connection timed out after 300000ms

0

I s3 buckets with event onCreated registration to push an event to SNS and from there a lambda. the lambda download the file from s3 and will ingest the file's content into Elasticsaerch.

from time to time we are getting an error when downloading the file from s3:

Error [TimeoutError]: Connection timed out after 300000ms

at ClientRequest.<anonymous> (/var/task/node_modules/aws-sdk/lib/http/node.js:86:34) at Object.onceWrapper (events.js:519:28) at ClientRequest.emit (events.js:400:28) at ClientRequest.emit (domain.js:475:12) at TLSSocket.emitRequestTimeout (_http_client.js:790:9) at Object.onceWrapper (events.js:519:28) at TLSSocket.emit (events.js:412:35) at TLSSocket.emit (domain.js:475:12) at TLSSocket.Socket._onTimeout (net.js:495:8) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { code: 'TimeoutError',

Can that be due to a concurrency / config/ too many invocations issue?

LiorG
asked 10 months ago669 views
1 Answer
0
profile picture
EXPERT
answered 10 months ago
  • 99% of the calls work, but some of them fail

  • You should check with AWS support if NATGW is experiencing any packet drop/any other transient issue.

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