anmode / grabtern-frontend

Connecting the mentors and creating a network
https://grabtern.in/
MIT License
27 stars 53 forks source link

šŸž [BUG] - Contact Us Form Fails to Send Data and Displays Error Messages Despite Filled Fields #906

Open sezallagwal opened 1 month ago

sezallagwal commented 1 month ago

Description

The Contact Us page is failing to send form data and is displaying error messages such as "Failed to send contact!" and "Please enter a message!" even when the required fields are filled out. @anmode Please assign it to me under gssoc-ext and hacktoberfest

Current behaviour

When trying to submit the form on the Contact Us page, the following errors appear:

"Failed to send contact!" "Please enter a message!"

No data is sent, and the submission fails, preventing users from reaching out via the contact form.

Expected behaviour

The form should submit the data successfully and show a confirmation message indicating that the contact request has been sent. Users should not receive error messages if all required fields are filled in correctly.

Reproduction steps

1. Go to the Contact Us page.
2. Fill in all required fields (Name, Email, Message).
3. Click the "Send" button.
4. Observe the error messages: "Failed to send contact!" and "Please enter a message!"

Screenshots

DESCRIPTION image

Logs

Failed to load resource: the server responded with a status of 412 ()
contact-72484cee92372658.js:1 Gmail_API: Invalid grant. Please reconnect your Gmail account

Browsers

Chrome

OS

Windows

Are you contributing for a program ?

Other

Code of Conduct

github-actions[bot] commented 1 month ago

Hello @sezallagwal! Thank you for raising this issue. Please make sure to follow our Contributing Guidelines. Don't forget to ā­ our Grabtern-Frontend.

Our review team will carefully assess the issue and reach out to you soon! We appreciate your patience!