When configuring the proxy with Vue, the front-end requests the server-side error 504; the Vue console reports the error occurred while trying to proxy request

Error occurred while trying to proxy request/login/from 127.0.0.1:8080 to http://127.0.0.1 :8081 (ECONNREFUSED) ( https://nodejs.org/api/errors.html#errors_ common_ system_ errors)

I searched for information on the Internet and found various answers. Then I tried several answers and found that there should be a problem with the port,

Finally, change the proxy address to http://127.0.0.1 9090 is the solution!

Read More: