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

610
Views
Error Reaccionar error de proxy: no se pudo solicitar el proxy

¿Por qué tengo este error:

Error de proxy: no se pudo realizar la solicitud de proxy /api/v1/management/me de localhost:3000 a http://localhost:8080 (ECONNREFUSED).

Tengo esta configuración de axios:

 axios.defaults.baseURL = "http://localhost:3000/";

Y configura esto en package.json :

 "proxy": "http://localhost:8080"

probado también:

 "proxy": "http://localhost:8080/"

Y tiene la siguiente llamada:

 axios({ method: "get", url: "api/v1/management/me", data: {}, headers: { crossDomain: true }, })

Cuando llamo directamente a http://localhost:8080/api/v1/management/me , recibí una respuesta del servidor.

Tengo el siguiente backend, configuración de ruta de Vapor. ¿Quizás algo está mal/específico aquí?

 let protectedAPIRouter = authSessionRouter.grouped("api/v1").grouped(User.guardAuthMiddleware()) let managementAPIRouter = protectedAPIRouter.grouped("management")
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Yo sugeriría las siguientes soluciones:

  1. Intente cambiar localhost a la dirección IP: "proxy": "http://your_IP_address:8080"
  2. Pruebe esta construcción también:
 "proxy": { "/api/*": { "target": "http://localhost:8080", "secure": false } }
about 4 years ago · Juan Pablo Isaza 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!