Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

300
Vistas
Connection refused when JS tries to fetch data from an internal server

I have a cloud instance of Ubuntu 18.04, which is running Apache2 and some Python services. My JS web app tries to fetch data from a Python service but it results to error "connection refused". Python service has CORS enabled and it responses to curl. I also configured ProxyPass for this service in Apache, so when I access the service URL directly with browser, I get the response.

I also have a laptop with Ubuntu 18.04, running apache. The app works fine there. I was comparing the Apache .conf files but couldn’t find any major differences.

In my older server I had the same problem but I got it solved by using PHP. In this new app I’d rather use JavaScript.

What could be preventing JS from fetching data?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I opened the port that the Python service is using in my cloud's security group and now it is working!

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda