Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T TDDD27_help
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Insights
    • Issue
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Erik Berglund
  • TDDD27_help
  • Issues
  • #136
Closed
Open
Issue created May 03, 2022 by Cecilia Emberg@cecpe172

Port Issue Connecting React frontend to Flask/Python Backend

We are trying to connect our frontend and backend (made with the help of the articles related to this guide) but can't get the last step to work. The React page on localhost:3000 displays a button that, when pressed, should fetch some info from /profiles in the backend (ran on localhost:5001). It's when this button is pressed that the error message shows up in the terminal (nothing happens in the browser).

Screenshot_2022-05-03_at_12.55.04

The current version of our code is in the features branch in our repo. We have tried adding "proxy": "http://localhost:5001"to our package.json file as well as "proxy": "127.0.0.1:5001". We have also switched between 5000/5001 and edited names of paths, but to no avail!

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking