haskell / haskell/HTTP

Better error message when HTTP_PROXY is down.

オープン
#84 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Haskell
スター
186
フォーク
59
PR マージ指標
30日以内にマージされた PR はありません

説明

Quoting https://github.com/haskell/cabal/issues/1962:

> In order to avoid #1602 I upgraded HTTP to version 4000.2.17. But I noticed a new (minor) problem: If the proxy mentioned in http_proxy is down, I get
>
> ```
> (sid)root@kirk:~# unset http_proxy
> (sid)root@kirk:~# cabal update
> Downloading the latest package list from hackage.haskell.org
> (sid)root@kirk:~# export http_proxy=http://localhost:3128/
> (sid)root@kirk:~# cabal update
> Downloading the latest package list from hackage.haskell.org
> cabal: does not exist
> # now starting the proxy
> (sid)root@kirk:~# cabal update
> Downloading the latest package list from hackage.haskell.org
> ```
>
> Certainly the error message could be more helpful.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、HTTP_PROXYをlocalhost:3128のような利用できないプロキシに設定して障害を再現し、その後、HTTPパッケージのプロキシリクエストとエラー処理のエントリポイントを調査します。停止しているプロキシが、報告された情報量のない出力ではなく、役立つエラーメッセージを生成するようになれば作業は完了です。

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

評価

技術スタック
haskell
領域
networking
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

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

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