aws / aws/aws-lambda-nodejs-runtime-interface-client

nodejs runtime missing `cause` when unhandled error thrown

オープン
#178 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
224
フォーク
60
PR マージ指標
30日以内にマージされた PR はありません

説明

For additional context see https://github.com/middyjs/middy/issues/994

**index.js**
```
export const handler = () => {}
throw new Error('error', {cause:'cause'})
```

logs
```
2023-01-26T07:46:54.151Z undefined ERROR Uncaught Exception {
"errorType": "Error",
"errorMessage": "cold",
"stack": [
"Error: cold",
" at file:///var/task/index.mjs:86241:7",
" at ModuleJob.run (node:internal/modules/esm/module_job:193:25)",
" at async Promise.all (index 0)",
" at async ESMLoader.import (node:internal/modules/esm/loader:530:24)",
" at async _tryAwaitImport (file:///var/runtime/index.mjs:921:16)",
" at async _tryRequire (file:///var/runtime/index.mjs:970:86)",
" at async _loadUserApp (file:///var/runtime/index.mjs:994:16)",
" at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1035:21)",
" at async start (file:///var/runtime/index.mjs:1200:23)",
" at async file:///var/runtime/index.mjs:1206:1"
]
}
```

Expect object to include`"errorCause": "cause"`.

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

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

評価

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

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

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