fix(loader-website): an empty error message is shown when /manifest fails

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

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

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

評価

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

調査の方向性

apps/website/src/manifest.ts の /manifest への fetch 箇所から始め、エラー処理を apps/website/src/cache/cache.ts および apps/client/src/server.ts のレスポンス構造と比較してください。失敗したレスポンスからエラーと詳細を読み取り、提案されている HTTP ステータスのフォールバックを使ってください。マニフェストのリクエストが失敗したときに、エラーパネルに役立つメッセージが表示されれば完了です。

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

説明

app:website bug good first issue
Which app is this bug report for?

website

Issue description

When /manifest returns a non-2xx status, the website throws new Error() with no message (manifest.ts#L7-L9). setError then shows an empty error panel, and the JSON body the client sends with its 500 ({ error, details }, client server.ts#L97-L103) is ignored.

Expected: the error panel shows why the manifest failed.

Suggested fix: read error/details from the body, as cache.ts#L94-L107 already does for game files, with HTTP Error <status> as a fallback.

Found during a read-only audit of main @ 044c766 (2026-11-11).

Code sample
const res = await fetch(`/manifest`);
if (!res.ok) {
  throw new Error(); // empty message shown to the user
}
Versions
  • @nanoforge-dev/loader-client / @nanoforge-dev/loader-server / @nanoforge-dev/loader-website 1.7.0 (main @ 044c766)
  • Bun 1.3.14
  • Linux x86_64
Issue priority

Low (slightly annoying)

I have tested this issue on a development release

044c766

主要言語
TypeScript
スター
1
フォーク
0
平均マージ
17時間 25分
マージ済み PR(30日)
11

環境構築

はじめの一歩

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

NanoForge-dev/Loader のほかの issue

NanoForge-dev/Loader の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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