Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#12 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

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
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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rivet-dev/website

Todos los issues de rivet-dev/website

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.