Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

nodejs runtime missing `cause` when unhandled error thrown

オープン
#178 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
nodejs, typescript
領域
backend

調査の方向性

index.js の再現から始め、示されているログオブジェクトを生成する未処理例外の経路を調査してください。利用可能であれば、リポジトリに既存のランタイムテストを使用して、結果として得られるエラー出力に値が cause の errorCause フィールドが含まれることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

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".

主要言語
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 を短くまとめたダイジェスト。