Upgrading to 4.0.0 appears to break lambdas using docker

オープン
#170 コメント 15 件 リアクション 6 件 担当者 1 名 GitHub で見る

@godcrampy がすでに取り組んでいます。

2025年12月11日 から。

評価

この issue はまだ評価されていません。

説明

bug

I had been using

RUN npm install -g aws-lambda-ric

Which is on me for not pinning it to a specific version, but with this after the 4.0.0 release on a new build of an image the lambda will no longer start.

2025-12-06T02:12:47.652Z | npm error could not determine executable to run
-- | --
  | 2025-12-06T02:12:47.653Z | npm error A complete log of this run can be found in: /tmp/.npm/_logs/2025-12-06T02_12_46_306Z-debug-0.log
  | 2025-12-06T02:12:47.664Z | INIT_REPORT Init Duration: 1421.03 ms Phase: init Status: error Error Type: Runtime.ExitError

Pinning to 3.3.0 allows our service to run.

RUN npm install -g aws-lambda-ric@3.3.0

This is across multiple projects for separate company stacks I am seeing this. I've pinned to 3.3.0 across the board.

This is running with node:24 as a base image, and had experienced with a node:23 deployment.

Here is an example of what is being used for the entrypoint with aws-lambda-ric:

ENTRYPOINT ["/usr/local/bin/npx", "aws-lambda-ric"]
CMD ["lib/serverless/lambda/lambda.handler"]

Noting again that after pinning the lambdas work as expected.

This is too similar to the pattern shown here, where the version is unpinned:

https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/blob/a4560c87426fa0a34756296a30d7add1388e575c/README.md?plain=1#L102

主要言語
TypeScript
スター
224
フォーク
60
平均マージ
26分
マージ済み PR(30日)
2

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/aws-lambda-nodejs-runtime-interface-client のほかの issue

aws/aws-lambda-nodejs-runtime-interface-client の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。