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

Http4s blaze should provide better feedback when rejecting a bad request (400)

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
scala
領域
backend

調査の方向性

blaze-server/src/main/scala/org/http4s/server/blaze/Http1ServerStage.scala の 317 行目付近から始めます。ここで issue は、拒否されたリクエストに対する debug レベルのログを特定しています。例の URL に対して、現在 400 レスポンスと logging がどのように動作するかを確認し、その後、info レベルのログ、レスポンスの詳細、またはその両方のどれを選ぶべきかについて maintainer の指針を求めます。選択した動作によって、デフォルトの logging レベルまたはレスポンスから拒否を診断できるようになれば完了です。

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

説明

enhancement module:blaze-server

I'll start explaining myself with an example. Let's say we deploy an http4s blaze server with info level logging. We then hit the server with a request for http://127.0.0.1:8080/foo?bar={} and get 400 in response. The response body is empty - no feedback there. The logs? No info there too. (for now, let's not discuss why this is a valid URL according to Firefox and Chrome and an invalid according to parboiled)

Switching logger level to debug, would give us the precious error message. But IMO using debug logs on production is not the way to go. I would like the problem to be diagnosable "by default", and the IMO info level is the "default" for production. So what can we do about it?

  1. This log could be an info level log.
  2. The response message could contain error information.

I can make a PR for one or both of these, but I would like to first hear your (maintainers'/community) opinion on that. Especially I would like to know which solution you would prefer.

主要言語
Scala
スター
371
フォーク
63
平均マージ
4時間 12分
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

http4s/blaze のほかの issue

http4s/blaze の issue をすべて見る

似ている issue

Scala の issue をもっと見る

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

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