Skip to content

Proxy port not set correctly #163

Description

@JosephSemrai

Describe the bug
Initially, the frontend will not be able to send requests to the backend (tested through the login and register routes). This is because all requests are proxied to the port 4000, but the backend (both dev and production) are running on port 3000 by default.

This leads to all requests failing to be fulfilled.

To Reproduce
Steps to reproduce the behavior:

  1. cd labellab-client
  2. npm install
  3. npm start
  4. New terminal window
  5. cd labellab-server
  6. npm install
  7. npm start or npm run dev
  8. Perform any request on the frontend and observe the error in the frontend console log.

Expected behavior
Requests are fulfilled by the backend.

Screenshots
image
Backend starting on port 3000
image
image
Proxy pointing to the wrong port

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 80

Additional context
Should be solved by updating the proxy value. I can make a pull request for this, given permission.

Activity

  1. Tushar19varshney commented on Dec 29, 2019

    @Tushar19varshney
    Contributor

    package.json is updated now and I have removed the proxy port. If you want to add proxy config you can make PR.

  2. NutanGhode commented on Feb 7, 2026

    @NutanGhode

    Hi, I’m a beginner contributor preparing for GSoC and would like to work on this issue.
    The fix seems to involve updating the proxy configuration to point to port 3000.
    Please let me know if I can proceed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions