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.
The wishlist page is currently sending requests to localhost:8080, which causes an error in the production environment (deployed on Render). This leads to the following problems:
The ERR_CONNECTION_REFUSED error is shown in the console because it's trying to reach a non-existent local server.
Visiting https://book4u-j5au.onrender.com/wishlist directly results in a 404 Not Found.
Steps to Reproduce:
Navigate to the wishlist page on the deployed site (https://book4u-j5au.onrender.com/wishlist).
Inspect the console to see the request being sent to localhost:8080.
Observe the error message: Failed to fetch wishlist. Please try again later.
Note to Maintainer: Please assign this issue to me under GSSoC and Hacktoberfest.
Expected behavior
The API request should be directed to the correct production API URL, not localhost.
The wishlist page should load properly without resulting in a 404 error when accessed directly.
Add ScreenShots
Wishlist Page Sending Requests to localhost:8080 in Production:
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
The wishlist page is currently sending requests to
localhost:8080
, which causes an error in the production environment (deployed on Render). This leads to the following problems:ERR_CONNECTION_REFUSED
error is shown in the console because it's trying to reach a non-existent local server.https://book4u-j5au.onrender.com/wishlist
directly results in a404 Not Found
.Steps to Reproduce:
https://book4u-j5au.onrender.com/wishlist
).localhost:8080
.Note to Maintainer: Please assign this issue to me under GSSoC and Hacktoberfest.
Expected behavior
localhost
.Add ScreenShots
Wishlist Page Sending Requests to localhost:8080 in Production:
404 Error on Direct Access:
On which device are you experiencing this bug?
Chrome
Record