Built-manifest check error hides the real cause

オープン 初心者向け
#208 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
backend

調査の方向性

src/catalog/testnetDeployment.ts の checkTestnetStartup から始めてください。90行目付近の catch ブロックは捕捉したエラーを破棄し、固定の拒否メッセージを返しています。98行目付近のノード読み取りによる拒否は、すでにエラーメッセージを追記しているので、それと比較してください。まず、例外を投げるマニフェストリーダーが原因を隠していることを確認して問題を裏付けてください。拒否理由に捕捉したエラーのメッセージが含まれ、例外を投げるリーダーを使ったテストでそれが検証されていれば完了です。issue の指示どおり phase0-completion ブランチで作業してください。

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

説明

contributors-section minor

Where: reference-implementations/dacs-directory/src/catalog/testnetDeployment.ts:90 (on phase0-completion at the linked commit)

What goes wrong: checkTestnetStartup in src/catalog/testnetDeployment.ts catches any failure while reading the compiled manifest (line 90) and reports only 'could not read the built manifest RPC; build with the testnet settings before starting'. A missing build, a parse failure and a failing route all look the same.

Suggested fix: Append the caught error's message to the refusal reason (as line 98 already does for the node read) and add a test for a reader that throws.

Size: Small

This comes from a code review, not from a failing run, so please confirm it before starting. Send the fix as a pull request to phase0-completion. It merges once tests pass and a maintainer has approved it.

主要言語
TypeScript
スター
0
フォーク
3
平均マージ
20時間 26分
マージ済み PR(30日)
119

環境構築

はじめの一歩

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

DACS-Agent-commerce/Community のほかの issue

DACS-Agent-commerce/Community の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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