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
已提問 10 個月前檢視次數 739 次
1 個回答
0
profile picture
專家
已回答 10 個月前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南