help icon indicating copy to clipboard operation
help copied to clipboard

Problem with (ECONNREFUSED)

Open lukecorf opened this issue 9 years ago • 2 comments

Node.js Version: 8.2.1 Windows 10 IDE: Intellij Frameworks: Spring Boot & Angular 4

Well... I need get data from my backend (Java). But Angular terminal show this message error:

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

This is my Angular code:

a

And this is my Java Code:

as

My Tomcat is configurated to 8080 port

sem titulo

And my proxy in angular is configurated like this image:

asd

Someone can help me please? This is important

lukecorf avatar Sep 11 '17 13:09 lukecorf

Hi @lukecorf follow this guide https://github.com/angular/angular-cli/blob/master/docs/documentation/stories/proxy.md But to me seem that your target url is not valid. You set its value to http:/localhost:8080, but I think that the right one is http://localhost:8080 Hope to be helpful

NickNaso avatar Sep 11 '17 22:09 NickNaso

Closing as answered, please re-open if it is still outstanding.

gireeshpunathil avatar Mar 26 '18 07:03 gireeshpunathil