A non-UUID identifier answers 500 on `GET /users/{user_id}` and LLM evaluation

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

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

@amarkanday がすでに取り組んでいます。

2026年11月6日 から。

  • #1790 @amarkanday による — オープン

評価

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

調査の方向性

GET /api/v1/users/{user_id} と POST /api/v1/llm-experiments/{id}/evaluate のハンドラーから始め、UUID 識別子が解析され、エラーが HTTP レスポンスにマッピングされる箇所を探します。Issue にあるリクエストを再現し、UUID 以外の ID と空の ID をカバーするテストを追加して、一般的な 500 ではなく 422 または 404 が返されることを確認します。

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

説明

bug post-launch
  • Sent: GET /api/v1/users/abc (an id with no - is passed to the query as text); POST /api/v1/llm-experiments/{id}/evaluate
    with {"evaluation_id": ""}.
  • Comes back: 500 with the generic error body.
  • Expected: 422 (or 404) for an id that is not a UUID.
  • Reproduction (superuser): curl -H "Authorization: Bearer <superuser token>" http://localhost:8000/api/v1/users/abc

Found by API fuzzing (a local run), reproduced by hand.

主要言語
Python
スター
0
フォーク
4
平均マージ
5時間 36分
マージ済み PR(30日)
509

環境構築

はじめの一歩

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

Controlvar/controlvar のほかの issue

Controlvar/controlvar の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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