Skip to content

bug: Newsletter subscription form throws error on submit #338

@itsmeesnehaa

Description

@itsmeesnehaa

Bug Report

Description

Clicking the "Subscribe" button on the newsletter subscription form
displays an error instead of successfully subscribing.

Steps to Reproduce

  1. Scroll to the newsletter subscription section
  2. Enter a valid email address
  3. Click the "Subscribe" button
  4. Error is displayed

Expected Behavior

  • Form submits successfully
  • User sees a success confirmation message
  • Email is recorded in the backend

Actual Behavior

  • An error is shown after clicking Subscribe
  • No confirmation message appears
  • Unclear if the subscription was recorded

Possible Causes

  • Missing CSRF token in the form submission
  • Backend API endpoint /api/subscribe/ not connected or returning error
  • Email validation failing silently
  • Frontend JS not handling the response correctly

Affected Files (suspected)

  • templates/ — newsletter form template
  • Frontend JS handling form submission
  • Backend view handling /api/subscribe/ or similar endpoint

Additional Context

⚠️ Please attach:

  • Screenshot of the error message
  • Browser Console logs (F12 → Console tab)
  • Network tab response for the failed request

Labels

bug frontend backend needs-investigation

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggssoc'26This contribution/project is part of GirlScript Summer of Code 2026level:intermediateMedium complexity points 35

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions