问题

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相关推荐

  1. Proxy error: Could not proxy request XXX from XXX to XXX

    先介绍一下环境,Windows10系统,vue-cli4 再直接讲结果,vue.config.js配置如下: 注意:target加上前缀http:// 因为之前Windows和Linux写法是有区别的 ...

  2. 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,找不到 ...

  3. Proxy error: Could not proxy request /***/***/*** from localhost:8080 to http://000.000.000/. 的解决办法

    问题概述 关于这个问题,博主是在集成联调的时候遇到的,在各个系统组件都开发完成后, 联调不通过,报错:" Proxy error: Could not proxy request /***/ ...

  4. 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/. 项目启动时,我的登 ...

  5. Proxy error: Could not proxy request... 问题解决

    背景 最近在项目中发现一个问题,每次npm run serve 时都是正常的,每次重新编译后就会有下面的提示: Proxy error: Could not proxy request Manage/ ...

  6. Mac Proxy error: Could not proxy request

    Android开发的Vue学习之路 提示:记录一些学习的知识路径,以及过程中遇到的问题 文章目录 Android开发的Vue学习之路 一.问题记录 1.Mac Proxy error: Could n ...

  7. 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 ...

  8. 运行项目报错 proxy error: could not proxy request...

    今天跑项目的时候遇到一个问题,早上跑的时候还好好的,午休完起来一看,页面报错了, 弹窗提示:proxy error: could not proxy request...from 我本地 to 目标地 ...

  9. (转)Proxy error: Could not proxy requestXXX from localhost:8080 to localhost:3000 (ENOTFO

    问题描述:因为node服务运行在localhost:3000端口,vue运行在localhost:8080端口,不同端口存在跨域问题. 所以我使用了反向代理处理. 在vue.config.js里: p ...

最新文章

  1. ZigBee On Windows Mobile--3.模拟器和实物调试
  2. 剑指Offer--二进制中1的个数
  3. linux命令之userdel
  4. LeetCode 1736. 替换隐藏数字得到的最晚时间
  5. idea常用快捷方式
  6. 在JSP页面中,对同名的CHECKBOX的处理
  7. 学习linux装,一个初学者的Linux学习之旅之Linux安装篇
  8. 谷歌浏览器 转方向_转专业 | 希望你们能在岔路口选对自己的路
  9. Flask蓝图使用的方法
  10. 公交车上应不应该给老人让座?
  11. 独家 | 腾讯无人车首次曝光,还把车子开上了四环
  12. 【emWin】例程五:显示数值
  13. java语言打印上三角和下三角,进一步得到九九乘法表
  14. Drug X跨越鸿沟:一个生物科学家的新药研发跋涉记
  15. 【postgresql 数据库运维文档】
  16. android转发短信到邮箱,Android手机使用Tasker转发短信及来电
  17. windows 系统arp命令
  18. 【设计模式】详解设计模式七大原则
  19. 使用PyTorch中的预训练模型进行图像分类
  20. ps还原上一步快捷键,ps还原上一步快捷键_photoshop恢复上一步操作的快捷键是什么...

热门文章

  1. 第5章 - 二阶多智能体系统的协同控制 --> 连续时间系统编队控制
  2. mvn compile报错“程序包com.XXX不存在”
  3. N-ary Tree n叉树学习
  4. 数据结构-无序(自由)树的简单实现(C++)
  5. 计算机基础是公共必修课,计算机公共必修课《大学计算机基础》课程教学大纲.doc...
  6. linux内核形式化验证,说说形式化验证(Formal Verification)吧
  7. 软件架构设计总结和理解
  8. 数据结构期末复习线性表(2)
  9. 根除 ff新鲜事 互联网毒瘤
  10. AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘