Proxy error: Could not proxy request

简介: Proxy error: Could not proxy request


VUE项目启动后,登录,发现报错:

Proxy error: Could not proxy request /user/login from localhost:8089 to http://***。**。**:8081/.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ENOTFOUND).

报错很明显,代理不过去,需要修改代理配置:

找到vue.config.js ,其中有配置代理的部分,改成正确的后端地址即可:

image.png


目录
相关文章
|
JSON JavaScript 数据格式
proxy error: could not proxy request解决方案
proxy error: could not proxy request解决方案
9195 0
proxy error: could not proxy request解决方案
|
29天前
|
监控 JavaScript 前端开发
|
6月前
|
JavaScript
Proxy error: Could not proxy request错误解决
Proxy error: Could not proxy request错误解决
250 0
|
6月前
|
自然语言处理 监控 JavaScript
什么是proxy?
什么是proxy?
25 0
|
API
Proxy error: Could not proxy request xxx from localhost:8080 to http://localhost:3000(ECONNREFUSED)
Proxy error: Could not proxy request xxx from localhost:8080 to http://localhost:3000(ECONNREFUSED)
1587 0
Proxy error: Could not proxy request xxx from localhost:8080 to http://localhost:3000(ECONNREFUSED)
ZCMU - 1991: Proxy
ZCMU - 1991: Proxy
66 0
|
Web App开发 应用服务中间件
tomcat报错:Error parsing HTTP request header
tomcat报错:Error parsing HTTP request header
250 0
why I get 415 error for my http post Service request creation in JMeter
why I get 415 error for my http post Service request creation in JMeter
104 0
why I get 415 error for my http post Service request creation in JMeter
get event by http request via CL_HTMLB_MANAGER
get event by http request via CL_HTMLB_MANAGER
104 0
get event by http request via CL_HTMLB_MANAGER
|
应用服务中间件 nginx
$http_x_forwarded_for 和 \$proxy_add_x_forwarded_for区别
在配置nginx的反向代理时,关于X-Forwarded-For的配置,我看到了两种配置:第一种: proxy_set_header X-Forwarded-For $http_x_forwarded_for; 第二种: proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 一般情况下,都是配置第二种.
4729 0