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

288
Views
Connection refused for jhipster with Angular

Here is the problem:

I initialized jhipster application on local and tried to run it with npm start and got following error:

[webpack-dev-server] [HPM] Error occurred while proxying request localhost:9000/api/account to http://[::1]:8081/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors)

Then I modified webpack/proxy.conf.js to:

function setupProxy({ tls }) {
  const conf = [
    {
      context: ['/api', '/services', '/management', '/v3/api-docs', '/h2-console', '/auth', '/health'],
      //target: `http${tls ? 's' : ''}://0.0.0.0:8080`,
      target: "http://[::1]:8081",
      //secure: false,
      //changeOrigin: true,
    },
  ];
  return conf;
}

module.exports = setupProxy;

The same error occurs, and server can't run properly. Should I try with LTS node version?

I'm using:

Jhipster 7.7.0, Node.js 17.4.0, all on Ubuntu 20.04 LTS

about 4 years ago · Juan Pablo Isaza
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!