Request Header with a "-" failing
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 32/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- docker, javascript
調査の方向性
Reproduce the failure with the provided Docker command and config.json, then inspect how the plugin passes Lighthouse settings to Network.setExtraHTTPHeaders. Compare the hyphenated and non-hyphenated header cases; done means valid headers with hyphens are accepted or the limitation is clearly documented.
索引モデルが issue の本文から書いたものです。
説明
I am running the following command: docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:11.9.3-plus1 --config /sitespeed.io/config.json http://www.domain.com/ with the contents of config.json being:
{
"lighthouse": {
"settings": {
"extra-headers": {"X-Bot-Allow":"123"},
"extraHeaders": {"X-Bot-Allow":"123"}
}
}
}
I get the following error:
[2020-03-06 22:44:31] ERROR: Lighthouse could not test http://www.domain.com/ please create an upstream issue: https://github.com/GoogleChrome/lighthouse/issues/new?template=Bug_report.md Error: Protocol error (Network.setExtraHTTPHeaders): Invalid header value, string expected
at Function.fromProtocolMessage (/lighthouse/node_modules/lighthouse/lighthouse-core/lib/lh-error.js:132:19)
at /lighthouse/node_modules/lighthouse/lighthouse-core/gather/connections/connection.js:123:25
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
[2020-03-06 22:44:31] ERROR: TypeError: Cannot read property 'lhr' of undefined
at Object.processMessage (/lighthouse/index.js:200:28)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
If I strip the hyphens from X-Bot-Allow, it works, but I need the hyphens as we use this header to allow our sites to not block our sitespeedio tests. Any ideas?
- 主要言語
- JavaScript
- スター
- 31
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sitespeedio/plugin-lighthouse のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
sitespeedio/plugin-lighthouse#136 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
sitespeedio/plugin-lighthouse#134 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
sitespeedio/plugin-lighthouse#133 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
sitespeedio/plugin-lighthouse#126 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
sitespeedio/plugin-lighthouse#120 · コメント 7 件 ·
sitespeedio/plugin-lighthouse の issue をすべて見る
似ている issue
-
[Feature]:オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Uuriko/project-room#1554 ·
メンテナーはふだん 1 日以内に返信
-
automated issue report
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
lirantal/discoprint#36 ·
メンテナーはふだん 1 日以内に返信
-
accepting PR Content:HTML
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
mdn/content#45988 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信