Error messages hide the server's reason: users see only '400 Bad Request'

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

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

@aman-code-io がすでに取り組んでいます。

2026年12月3日 から。

評価

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

調査の方向性

app/src/lib/stac-api/client.tsの104行目付近から、StacApiError.detailがどのように取得されるかをたどり、次に失敗を表示するtoastと共有エラーパネルを見つけてください。detailのリストがどのように表現されるかを確認し、detailのリストを含む400レスポンスのテストを追加または更新してください。toastとパネルの両方にフィールドと理由が表示されれば完了です。

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

説明

bug good first issue ready

Found in the 2026-11-29 whole-repo review. Reported by a reviewer from reading the code.

Problem

app/src/lib/stac-api/client.ts (~line 104) captures the catalog's explanation in StacApiError.detail, but no component ever displays it. Toasts read "Create failed: STAC API error: 400 Bad Request". For validation errors the detail is a list but is typed as text.

How it goes wrong

A duplicate id or an invalid field gives the user nothing to act on. (This is how #80 looks to a user.)

Suggested fix

Format the detail (including lists) into the error message and show it in toasts and the shared error panel.

Acceptance criteria

  • Test: a 400 with a detail list renders the field and reason
主要言語
Python
スター
0
フォーク
2
平均マージ
8時間 26分
マージ済み PR(30日)
47

環境構築

はじめの一歩

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

TechTraverse/stac-higher のほかの issue

TechTraverse/stac-higher の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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