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

Error occurred while proxying request localhost:3000/api/auth/login to http://localhost:5000/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors) #609

Open
rishilin09 opened this issue Aug 2, 2023 · 2 comments

Comments

@rishilin09
Copy link

rishilin09 commented Aug 2, 2023

After following the installation steps, I tried to ran the project using the npm run dev command as given in the instruction. The landing page was successfully displayed but when I tried to signed in with the github it didnt forwarded me to the notes page instead a error was thrown

ERROR:
 <e> [webpack-dev-server] [HPM] Error occurred while proxying request localhost:3000/api/auth/login to http://localhost:5000/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors)

Can you please tell me where did I went wrong and what to do to solve the problem?

Node Version: v14.21.3

npm Version: 9.7.1

System Configuration
Host Name: RISHI-PC
OS Name: Microsoft Windows 11 Home Single Language
OS Version: 10.0.22621 N/A Build 22621
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: Rishi
Registered Organization: N/A
Product ID: 00356-24514-74975-AAOEM
Original Install Date: 9/28/2022, 1:52:50 PM
System Boot Time: 7/30/2023, 12:28:46 PM
System Manufacturer: LENOVO
System Model: 82K2
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: AMD64 Family 25 Model 80 Stepping 0 AuthenticAMD ~1908 Mhz
BIOS Version: LENOVO H3CN30WW(V2.00), 6/28/2021
Windows Directory: C:\WINDOWS
System Directory: C:\WINDOWS\system32
Boot Device: \Device\HarddiskVolume1
System Locale: en-us;English (United States)
Input Locale: 00004009
Time Zone: (UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi
Total Physical Memory: 5,996 MB
Available Physical Memory: 281 MB
Virtual Memory: Max Size: 19,834 MB

Screenshots

Image1
Image2
Image3

@Nina0917
Copy link

I also couldn't set up the repo using the npm run dev. Try Docker. It works for me but changes your Authorization callback URL to port 5000 instead.

@rushabhkhope
Copy link

Faced same error
Create a .env file in the root of the project, and add the app's client ID and secret. Remove DEMO variable to enable GitHub integration.

CLIENT_ID=xxx
CLIENT_SECRET=xxxx
DEMO=true

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

3 participants