Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Wishlist Page Sending Requests to localhost:8080 in Production & 404 Error on Direct Access #485

Closed
4 tasks done
amitb0ra opened this issue Oct 15, 2024 · 1 comment

Comments

@amitb0ra
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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:

  • 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:

  1. Navigate to the wishlist page on the deployed site (https://book4u-j5au.onrender.com/wishlist).
  2. Inspect the console to see the request being sent to localhost:8080.
  3. 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:
image

404 Error on Direct Access:
image

On which device are you experiencing this bug?

Chrome

Record

  • I have read the Contributing Guidelines
  • I'm a GSSOC'24 contributor
  • I have starred the repository
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant