Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

464
Views
No se pudo realizar la solicitud de proxy /pusher/auth de localhost:3000 a http://localhost:5000 (ECONNREFUSED)

Estoy tratando de crear una aplicación de chat usando reactJS y pusher, recibo este error:

No se pudo realizar la solicitud de proxy /pusher/auth de localhost:3000 a http://localhost:5000 (ECONNREFUSED)

en el archivo package.json he configurado el proxy como-

 "proxy": "http://localhost:5000"

y mi localhost está definido como 127.0.0.1 en el /etc/hosts .
También verifiqué la disponibilidad del puerto usando netstat , pero todo parece ser correcto. ¿Alguien puede ayudar?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Tuve el mismo problema en mi aplicación React y lo solucioné simplemente agregando "/" después del número de puerto en el archivo package.json (así que ahora es: "proxy": " http://localhost:5000/ ")

over 4 years ago · Santiago Trujillo Report

0

Enfrenté un problema similar pero en una máquina Mac. Cambié localhost a 127.0.0.1 y funcionó para mí.

Para ventanas:

 "proxy": { "/auth/google": { "target": "localhost:5000" } }

Para Mac:

 "proxy": { "/auth/google": { "target": "http://127.0.0.1:5000" } }
over 4 years ago · Santiago Trujillo Report

0

En su servidor package.json, agregue --ignore client a sus scripts de "inicio" o "servidor". Entonces se vería así:

 "scripts": { "start": "node index.js", "server": "nodemon index.js --ignore client" }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!