Trisha-tech / OnlineBookSales

This project named Online Book Sales - Backend deals with developing an e-commerce website for Online Book Sale. It provides the user with a catalog of different books available for purchase in the store. In order to facilitate online purchase, a shopping cart is provided to the user.
https://book4u-j5au.onrender.com/
MIT License
140 stars 241 forks source link

[Bug]: Issue with Login Form and Signup Process #538

Open poonam17122004 opened 3 weeks ago

poonam17122004 commented 3 weeks ago

Is there an existing issue for this?

Describe the bug

  1. Login Form Error:

When a user fills out the login form and submits it, the following error is encountered:

Uncaught (in promise) TypeError: Cannot read properties of undefined

  1. Signup Form Issue:

When a user attempts to create an account through the signup form, there is no response from the backend, and the account is not being created.

cURL request for signup API :-

curl 'http://localhost:8080/customer/register' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'Referer: http://localhost:3000/' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' \ -H 'Accept: application/json, text/plain, /' \ -H 'sec-ch-ua: "Brave";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \ -H 'Content-Type: application/json' \ -H 'sec-ch-ua-mobile: ?0' \ --data-raw '{"name":"sdfasd","email":"sfasfdsd@gmail.com","password":"23456"}'

cUrl request for login API :-

curl 'http://localhost:8080/customer/login' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'Referer: http://localhost:3000/' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' \ -H 'Accept: application/json, text/plain, /' \ -H 'sec-ch-ua: "Brave";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \ -H 'Content-Type: application/json' \ -H 'sec-ch-ua-mobile: ?0' \ --data-raw '{"email":"test@gmail.com","password":"Test@123"}'

Expected behavior

  1. Login:
  1. Signup:

Add ScreenShots

Screenshot 2024-10-18 at 6 30 13 PM

https://github.com/user-attachments/assets/053f4d17-cc9f-4277-861c-55fe96367b3d

Screenshot 2024-10-18 at 6 44 54 PM

On which device are you experiencing this bug?

Android, iPhone, Linux, Chrome, Windows

Record

github-actions[bot] commented 3 weeks ago

Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible.

poonam17122004 commented 3 weeks ago

@Trisha-tech please assign me this issue