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.
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.
Is there an existing issue for this?
Describe the bug
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
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
Add ScreenShots
https://github.com/user-attachments/assets/053f4d17-cc9f-4277-861c-55fe96367b3d
On which device are you experiencing this bug?
Android, iPhone, Linux, Chrome, Windows
Record