Bug: Contact form submission fails because of invalid `FormData` conversion
Los mantenedores suelen responder en 1 día
@RishiGoswami-code ya está trabajando en esto.
Desde el 23/8/2026.
- #13 de @RishiGoswami-code — abierto
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- frontend
Línea de trabajo
Comienza con website/src/components/marketing/talk-to-an-engineer/form.tsx y website/src/components/marketing/sales/form.tsx, centrándote en la conversión de FormData de cada submit handler. Verifica que el envío se complete, que los campos capturados se conviertan en un objeto y que el seguimiento de PostHog y Sentry siga ejecutándose sin la llamada de conversión no válida.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 2
- Forks
- 6
- Merge medio
- 6 h 43 min
- PR fusionados (30 d)
- 56
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rivet-dev/website
-
Bug: Secure Exec hero copy disappears on mobilePosiblemente ocupada @Utkarshpandey0001 la tomó hace 12 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
rivet-dev/website#126 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de rivet-dev/website
Issues similares
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
core
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
vectorize-io/hindsight#5457 ·
Los mantenedores suelen responder en 1 día
-
beginner friendly community contributions-welcome good first issue hacktoberfest help wanted testing up-for-grabs
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
lukilabs/beautiful-mermaid#160 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
rescript-lang/rescript-lang.org#1420 ·
Los mantenedores suelen responder en 2 días