Skip to content

token is undefined on the pages#2

Description

@elhalj

馃悰 New Contribution Form Does Not Respond on Submission

Affected Files:
backend/src/middleware/auth.js
backend/src/middleware/async.js

Description:
When submitting the form, there's no user feedback even though backend validation fails. The form appears unresponsive after submission attempts.

Steps to Reproduce:

  1. Navigate to /new-contribution
  2. Enter all required data
  3. Submit the form

Expected Behavior:

  • A validation popup should appear
  • Successful submission should redirect to dashboard

Current Behavior:
The form submits without visual feedback. The POST request fails (status 500) but the UI remains unchanged.

Environment:

  • OS: Ubuntu
  • Browser: Chrome v137.0.7151.55 (Official Build) (64-bit)
  • React v18.2
  • Vite v6.3.5

Attempted Solutions:

  • Verified errors are present in API response
  • Checked network tab for 500 error details
  • Inspected backend validation logic

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions