Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

301
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda