🐛 Bug Report: a non-string header value crashes the whole browser service
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 15/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- bun, playwright, typescript
調査の方向性
Start with the header schemas and the page.route handlers in src/routes/screenshots.ts and the corresponding reports route. Check how non-string header values are validated and how route callback errors are handled; the report says the failure occurs at screenshots.ts:64. Done means malformed headers return a 400 response, the service stays up, and a regression test covers both endpoints and non-string values.
索引モデルが issue の本文から書いたものです。
説明
👟 Reproduction steps
- Start the service (
docker compose up, orbun run src/server.ts). - Send a header whose value is not a string:
curl -X POST localhost:3000/v1/screenshots -H 'content-type: application/json' \ -d '{"url":"https://example.com","headers":{"X-Retry":1}}' - The request gets no response, and
GET /v1/healthnow fails: the server process has exited.
Same for POST /v1/reports, and for true, null, arrays or objects as the value.
👍 Expected behavior
A 400 validation error, like any other malformed field; the service keeps running.
👎 Actual Behavior
The schemas accept any JSON value for headers (z.record(z.string(), z.any())), but Playwright's
route.continue() only takes string values. It throws inside the page.route handler, nothing catches
the rejection, and Bun exits:
error: continue: headers[6].value: expected string, got number
at .../src/routes/screenshots.ts:64:24
Every other capture in flight fails with it.
🎲 Appwrite version
Different version (specify in environment)
💻 Operating system
MacOS
🧱 Your Environment
appwrite/docker-browser main @ 3856d53, run locally with Bun 1.3.2 (the Dockerfile's version) and Google Chrome on macOS arm64.
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
I have a fix with a regression test ready. Could this be assigned to me so I can open a PR?
- 主要言語
- TypeScript
- スター
- 8
- フォーク
- 2
- 平均マージ
- 3日 8時間
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
appwrite/docker-browser のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
appwrite/docker-browser#20 ·
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 52/100
appwrite/docker-browser#15 ·
appwrite/docker-browser の issue をすべて見る
似ている issue
-
area: server priority: P3 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
appandflow/stim#4538 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Published Docker images lack the redis extra: HEADROOM_COMPRESS_SESSION_STORE stops startup対応中かも @AlessandroSpallina が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
headroomlabs-ai/headroom#4513 ·
メンテナーはふだん 1 日以内に返信
-
bug extension extension: obsidian platform: Windows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
raycast/extensions#32838 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
copy design-review mac P3
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
tosunlab/hisarapp-core#510 ·
-
bug priority-medium to-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信