Vue-Proxy error: Could not proxy request xxx/xxx from localhost:9528 to http://ip:port
问题
vue项目启动后登录报如下错误:
App running at:- Local: http://localhost:9528/ - Network: http://192.168.100.26:9528/Proxy error: Could not proxy request /model/list from localhost:9528 to http://xxxxx:9090/xxxx.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
是代理服务器出了问题,可能是当前配置的代理服务器关闭了或者配置错误,在vue.config.js文件中,将target改成正确的已开启的服务器地址即可(可以让后端开发人员开启一下服务器)
proxy: {// 代理服务器设置'/my_test_proxy': {target: 'xxx:xxx', // 需要将目前的地址代理至targetchangeOrigin: true,pathRewrite: {['^' + '/my_test_proxy']: '' // 将'/my_test_proxy' 重写为''}}
}
参考
Proxy error: Could not proxy request
https://www.cnblogs.com/wwqzbl/p/15200209.html
Vue-Proxy error: Could not proxy request xxx/xxx from localhost:9528 to http://ip:port相关推荐
- Proxy error: Could not proxy request XXX from XXX to XXX
先介绍一下环境,Windows10系统,vue-cli4 再直接讲结果,vue.config.js配置如下: 注意:target加上前缀http:// 因为之前Windows和Linux写法是有区别的 ...
- vue2中使用mockjs出现报错proxy error: could not proxy request xxx from xxx to xxx 和404,500问题
问题说明 出现proxy error: could not proxy request报错,应该是因为devServer代理的服务器未开启,或者地址错误,改正就好. 404 not found,找不到 ...
- Proxy error: Could not proxy request /***/***/*** from localhost:8080 to http://000.000.000/. 的解决办法
问题概述 关于这个问题,博主是在集成联调的时候遇到的,在各个系统组件都开发完成后, 联调不通过,报错:" Proxy error: Could not proxy request /***/ ...
- Proxy error: Could not proxy request /getInfo from localhost:81 to http://localhost:8080/.
Proxy error: Could not proxy request /getInfo from localhost:81 to http://localhost:8080/. 项目启动时,我的登 ...
- Proxy error: Could not proxy request... 问题解决
背景 最近在项目中发现一个问题,每次npm run serve 时都是正常的,每次重新编译后就会有下面的提示: Proxy error: Could not proxy request Manage/ ...
- Mac Proxy error: Could not proxy request
Android开发的Vue学习之路 提示:记录一些学习的知识路径,以及过程中遇到的问题 文章目录 Android开发的Vue学习之路 一.问题记录 1.Mac Proxy error: Could n ...
- Proxy error: Could not proxy request /admin/myResources.do from localhost.jd.com:41000 to http://loc
Proxy error: Could not proxy request /admin/myResources.do from localhost.jd.com:41000 to http://loc ...
- 运行项目报错 proxy error: could not proxy request...
今天跑项目的时候遇到一个问题,早上跑的时候还好好的,午休完起来一看,页面报错了, 弹窗提示:proxy error: could not proxy request...from 我本地 to 目标地 ...
- (转)Proxy error: Could not proxy requestXXX from localhost:8080 to localhost:3000 (ENOTFO
问题描述:因为node服务运行在localhost:3000端口,vue运行在localhost:8080端口,不同端口存在跨域问题. 所以我使用了反向代理处理. 在vue.config.js里: p ...
最新文章
- ZigBee On Windows Mobile--3.模拟器和实物调试
- 剑指Offer--二进制中1的个数
- linux命令之userdel
- LeetCode 1736. 替换隐藏数字得到的最晚时间
- idea常用快捷方式
- 在JSP页面中,对同名的CHECKBOX的处理
- 学习linux装,一个初学者的Linux学习之旅之Linux安装篇
- 谷歌浏览器 转方向_转专业 | 希望你们能在岔路口选对自己的路
- Flask蓝图使用的方法
- 公交车上应不应该给老人让座?
- 独家 | 腾讯无人车首次曝光,还把车子开上了四环
- 【emWin】例程五:显示数值
- java语言打印上三角和下三角,进一步得到九九乘法表
- Drug X跨越鸿沟:一个生物科学家的新药研发跋涉记
- 【postgresql 数据库运维文档】
- android转发短信到邮箱,Android手机使用Tasker转发短信及来电
- windows 系统arp命令
- 【设计模式】详解设计模式七大原则
- 使用PyTorch中的预训练模型进行图像分类
- ps还原上一步快捷键,ps还原上一步快捷键_photoshop恢复上一步操作的快捷键是什么...
热门文章
- 第5章 - 二阶多智能体系统的协同控制 --> 连续时间系统编队控制
- mvn compile报错“程序包com.XXX不存在”
- N-ary Tree n叉树学习
- 数据结构-无序(自由)树的简单实现(C++)
- 计算机基础是公共必修课,计算机公共必修课《大学计算机基础》课程教学大纲.doc...
- linux内核形式化验证,说说形式化验证(Formal Verification)吧
- 软件架构设计总结和理解
- 数据结构期末复习线性表(2)
- 根除 ff新鲜事 互联网毒瘤
- AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘