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
100 stars 167 forks source link

[Bug]: Error Occurs Upon Registering Despite Entering All Information Correctly #340

Open Ryadav0654 opened 5 days ago

Ryadav0654 commented 5 days ago

Is there an existing issue for this?

Describe the bug

When attempting to register a new account, after entering all the required information on the registration page (e.g., name, email, password.) and clicking the "Register" button, an error message is displayed, preventing successful registration.

  1. Navigate to the registration page.
  2. Fill in all mandatory fields (e.g., username, email, password, etc.).
  3. Click the "Register" button.
  4. Observe that an error message appears and the registration fails.

Expected behavior

Upon entering all required information correctly and clicking the "Register" button, the user should be successfully registered and redirected to the appropriate page (e.g., login page or dashboard).

Add ScreenShots

Screenshot 2024-10-07 013908

On which device are you experiencing this bug?

Windows

Record

github-actions[bot] commented 5 days 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.

Ryadav0654 commented 5 days ago

Hi @Trisha-tech ,

I've reported an issue related to the registration process, where users encounter an error after entering all the required information. Could you please review the issue and assign it to me for resolution?

Thanks!

Suman373 commented 5 days ago

Hi @Trisha-tech ,

I've reported an issue related to the registration process, where users encounter an error after entering all the required information. Could you please review the issue and assign it to me for resolution?

Thanks!

Did you run your server on localhost while testing the client side ?

Ryadav0654 commented 4 days ago

Hi @Trisha-tech , I've reported an issue related to the registration process, where users encounter an error after entering all the required information. Could you please review the issue and assign it to me for resolution? Thanks!

Did you run your server on localhost while testing the client side ?

No, I didn't run the server on localhost.

Suman373 commented 4 days ago

Hi @Trisha-tech , I've reported an issue related to the registration process, where users encounter an error after entering all the required information. Could you please review the issue and assign it to me for resolution? Thanks!

Did you run your server on localhost while testing the client side ?

No, I didn't run the server on localhost.

If you dont the run the server, how will your api request be successful

Ryadav0654 commented 4 days ago

If you dont the run the server, how will your api request be successful

The issue is on your live website. When I visited the live site at https://book4u-j5au.onrender.com/signup, it gave an error.

Suman373 commented 4 days ago

If you dont the run the server, how will your api request be successful

The issue is on your live website. When I visited the live site at https://book4u-j5au.onrender.com/signup, it gave an error.

Obviously. The api endpoint is hardcoded with localhost in SignUp page. There is no env provided for the live website. Do you want to fix this?