SomethingsGottaGive
SomethingsGottaGive

Reputation: 1894

jhipster/spring boot - Error occurred while trying to proxy request

I am getting a bunch of nodejs errors when I try to run my jhipster generated react webapp. I am running this project on macos with node 10.4.1 and yarn 1.7.0. Here's the exact error:

[HPM] Error occurred while trying to proxy request /api/account from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /management/info from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/account from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/account from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /management/info from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/account from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)

There might be something afoul happening with my computer.... Any ideas?

Upvotes: 1

Views: 6091

Answers (1)

Alien
Alien

Reputation: 15878

This error means browsersync/webpack could not connect to the backend java which is on port 8080 for proxying API calls: the spring boot application must be running before you do "yarn start". You must run both "./mvnw" and "yarn start". See documentation and webpack/webpack.dev.js file

Upvotes: 5

Related Questions