[HPM] Error occurred while trying to proxy request

[HPM] Error occurred while trying to proxy request /login from localhost:4202 to http://car.benqio.com:8090 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)

 

昨天中午的时候还好好的,但了旁晚再运行时就出现这个错误,proxy.config.ts文件没问题,接口没问题,试了google上的答案还是不行,早上来的时候,然后我就试着改了port,由4202改为4201,然后就可以了,查了端口也没被其他程序占用,然后我又改为4202,也可以。。。也不知道啥情况。。。。。。。。。。。要是你们也出现这个问题,可以试试

"start": "ng serve --host 0.0.0.0 --port 4202 --proxy-config proxy.config.json",

你可能感兴趣的:([HPM] Error occurred while trying to proxy request)