Request to server is very slow
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
ソースファイルやテストは指定されていません。HTTPie の CLI コマンド https --debug GET repro.pacemakr.at でリクエストを再現し、説明されている他のクライアントとその所要時間を比較して、遅延が発生している箇所を特定するために CLI のリクエスト経路を追跡してください。CLI が既存のリクエスト動作を退行させることなく速やかに戻れば完了です。
索引モデルが issue の本文から書いたものです。
説明
Checklist
- I've searched for similar issues.
- I'm using the latest version of HTTPie.
Minimal reproduction code and steps
- Download the latest version of HTTPie (brew or pip).
- Make a GET request to
https://repro.pacemakr.at. - Wait.
Current result
Request takes several seconds or even minutes.
Expected result
Return (pretty much) immediately.
Debug output
$ https --debug GET repro.pacemakr.at
HTTPie 3.2.3
Requests 2.31.0
Pygments 2.18.0
Python 3.12.5 (main, Aug 6 2024, 19:08:49) [Clang 15.0.0 (clang-1500.3.9.4)]
/opt/homebrew/Cellar/httpie/3.2.3/libexec/bin/python
Darwin 23.6.0
<Environment {'apply_warnings_filter': <function Environment.apply_warnings_filter at 0x101f0c7c0>,
'args': Namespace(),
'as_silent': <function Environment.as_silent at 0x101f0c680>,
'colors': 256,
'config': {'default_options': []},
'config_dir': PosixPath('/Users/guri/.config/httpie'),
'devnull': <property object at 0x101ef9cb0>,
'is_windows': False,
'log_error': <function Environment.log_error at 0x101f0c720>,
'program_name': 'https',
'quiet': 0,
'rich_console': <functools.cached_property object at 0x101e81cd0>,
'rich_error_console': <functools.cached_property object at 0x100e0fec0>,
'show_displays': True,
'stderr': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>,
'stderr_isatty': True,
'stdin': <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>,
'stdin_encoding': 'utf-8',
'stdin_isatty': True,
'stdout': <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>,
'stdout_encoding': 'utf-8',
'stdout_isatty': True}>
<PluginManager {'adapters': [],
'auth': [<class 'httpie.plugins.builtin.BasicAuthPlugin'>,
<class 'httpie.plugins.builtin.DigestAuthPlugin'>,
<class 'httpie.plugins.builtin.BearerAuthPlugin'>],
'converters': [],
'formatters': [<class 'httpie.output.formatters.headers.HeadersFormatter'>,
<class 'httpie.output.formatters.json.JSONFormatter'>,
<class 'httpie.output.formatters.xml.XMLFormatter'>,
<class 'httpie.output.formatters.colors.ColorFormatter'>]}>
>>> requests.request(**{'auth': None,
'data': RequestJSONDataDict(),
'headers': <HTTPHeadersDict('User-Agent': b'HTTPie/3.2.3')>,
'method': 'get',
'params': <generator object MultiValueOrderedDict.items at 0x10212e4d0>,
'url': 'https://repro.pacemakr.at'})
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Type: application/json
Date: Sat, 07 Sep 2024 07:43:57 GMT
Server: nginx/1.26.2
Transfer-Encoding: chunked
Via: kong/2.8.1
X-Kong-Proxy-Latency: 2
X-Kong-Upstream-Latency: 85
content-encoding: gzip
vary: Accept-Encoding
"Hello World!"
Additional information, screenshots, or code examples
I've tested the endpoint on three different machines (Windows, Ubuntu and Mac), including the server running the service itself. Clients I've tested with are HTTPie CLI and desktop app, cURL and another HTTP client as well as the browser. Each returns in less than 500ms except the CLI. This happens regardless of how the program was installed (pip or brew).
- 主要言語
- Python
- スター
- 38.6k
- フォーク
- 4k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
httpie/cli のほかの issue
-
new
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug new
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
httpie/cli#1828 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
gradio-app/gradio#13895 ·
メンテナーはふだん 1 日以内に返信
-
build-error
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
spack/spack-packages#6713 ·
メンテナーはふだん 1 日以内に返信
-
Use issue templatesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ActivityWatch/activitywatch#1464 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: The ckg tool drops the return type of every decorated Python method in class search resultsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bytedance/trae-agent#483 ·
メンテナーはふだん 1 日以内に返信