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解决方案
10279 5
proxy error: could not proxy request解决方案
|
2月前
|
弹性计算 安全 API
HTTP 405 Method Not Allowed:解析与解决
本文详细解析了HTTP 405 "Method Not Allowed" 错误,包括其定义、常见原因、示例代码及解决方案。通过检查API文档、修改请求方法或更新服务器配置,可有效解决此错误,提升Web开发效率。
729 2
bad boolean config value ‘****‘ for ‘http.sslverify‘
bad boolean config value ‘****‘ for ‘http.sslverify‘
|
JavaScript
Proxy error: Could not proxy request错误解决
Proxy error: Could not proxy request错误解决
599 0
|
文字识别
Response from backend server
Response from backend server
80 1
Error from server error dialing backend remote error tls internal error
Error from server error dialing backend remote error tls internal error
134 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)
1992 0
Proxy error: Could not proxy request xxx from localhost:8080 to http://localhost:3000(ECONNREFUSED)
|
Web App开发 应用服务中间件
tomcat报错:Error parsing HTTP request header
tomcat报错:Error parsing HTTP request header
369 0