Bug: Contact form submission fails because of invalid `FormData` conversion
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
website/src/components/marketing/talk-to-an-engineer/form.tsx と website/src/components/marketing/sales/form.tsx から始め、それぞれの submit handler の FormData 変換に注目してください。送信が完了すること、取得されたフィールドがオブジェクトに変換されること、無効な変換呼び出しなしで PostHog と Sentry のトラッキングが引き続き実行されることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Bug: Contact form submission fails because of invalid FormData conversion
Summary
The marketing contact forms fail at submit time because the code attempts to call toArray() on FormData.entries(). This is not a valid browser API and causes the submit handler to throw before analytics or feedback hooks can run.
Affected files
- website/src/components/marketing/talk-to-an-engineer/form.tsx
- website/src/components/marketing/sales/form.tsx
Steps to reproduce
- Open any of the marketing forms.
- Fill in the required fields.
- Submit the form.
- The page throws an error during submit handling.
Expected behavior
The form should submit successfully and send the captured data to PostHog and Sentry without crashing.
Actual behavior
The submit handler throws because formData.entries().toArray() is invalid. The form never completes submission and user conversion flow breaks.
Root cause
FormData.entries() returns an iterator, not an array. Calling .toArray() is invalid in the browser runtime.
Fix implemented
The code was updated to use a valid conversion approach:
Array.from(formData.entries())
This preserves the form values correctly and allows Object.fromEntries(...) to work as expected.
Impact
- Contact form submissions can fail
- Lead capture flow breaks
- Analytics and feedback tracking may not fire
Verification
The fix was applied in the form handlers and the invalid method call was removed from the affected files.
Acceptance criteria
- Form submission completes without throwing an error
- Captured field values are correctly converted into an object
- PostHog and Sentry tracking still run as expected
- 主要言語
- TypeScript
- スター
- 2
- フォーク
- 6
- 平均マージ
- 9時間 29分
- マージ済み PR(30日)
- 66
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rivet-dev/website のほかの issue
-
Bug: Secure Exec hero copy disappears on mobile対応中かも @Utkarshpandey0001 が 18 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
rivet-dev/website#126 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
rivet-dev/website の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
AvaProtocol/ava-sdk-js#276 ·
メンテナーはふだん 1 日以内に返信
-
useFragment does not require `variables` when the fragment's variables type has required fieldsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apollographql/apollo-client#13493 ·
メンテナーはふだん 1 日以内に返信
-
Custom hosts written as trailing-dot FQDNs (`host.local.`) aren't detected as local backends対応中かも @roboomp が今日担当しました。 オープンbug prio:p2 providers triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
can1357/oh-my-pi#15798 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
code-yeongyu/oh-my-openagent#10172 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
PDFCraftTool/pdfcraft#189 ·