Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Bug: Contact form submission fails because of invalid `FormData` conversion

オープン
#12 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@RishiGoswami-code がすでに取り組んでいます。

2026年8月23日 から。

  • #13 @RishiGoswami-code による — オープン

評価

難易度
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

Steps to reproduce

  1. Open any of the marketing forms.
  2. Fill in the required fields.
  3. Submit the form.
  4. 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 ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rivet-dev/website のほかの issue

rivet-dev/website の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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