问题

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. 大学计算机教学设计案例,信息技术教学设计案例.ppt
  2. 给大家介绍一个相当好的播放器 J River Media Center 15
  3. linux批量备份服务器配置文件和目录的脚本
  4. 编程基本功:有了范例代码,怎么办?
  5. shell脚本--使用for循环逐行访问txt文件
  6. [转载] 整理下java中stringBuilder和stringBuffer两个类的区别
  7. python回溯方法的模板_实例讲解Python基于回溯法子集树模板实现图的遍历功能
  8. windows系统bat批处理 执行后 隐藏批处理本身
  9. 什么是闭包?闭包有什么用?闭包咋写啊?这是一篇介绍js闭包的博客
  10. ISO14001认证
  11. Snipaste截图软件的下载和使用(日常常用的一些功能)
  12. 讨论BUCK、BOOST、BUCK-BOOST电路CCM模式下的设计参数计算
  13. java x86 x64_x86 版和x64版有什么区别?
  14. 怎样成为优秀的测试工程师
  15. 3D建模学习对于电脑配置要求高不高?用台式机好还是笔记本电脑好?显卡内存等全方面解析,小白福音
  16. nagios监控华为5700交换机
  17. trove mysql 镜像_OpenStack(Queens)制作 Trove 镜像
  18. Qt + libVlc
  19. 2022.04.15【单细胞】|Seurat安装,C++ compiler supports the long long type... no解决方法
  20. 一顿操作猛如虎,老罗也要啃老土

热门文章

  1. 微软首席数字官亲述微软自己的数字化转型故事
  2. 最全的项目部署+持续集成解决方案:Jenkins + git + docker
  3. SDK全局热更新方案(全网唯一)
  4. hdu-5643 King's Game(打表)
  5. 简历——“三无”应届生怎么写简历,全是干货!(模板直接拿走)
  6. 计算机音乐念诗之王,念诗之王(电音版)
  7. Pytorch 叶子张量 leaf tensor (叶子节点) (detach)
  8. 第7-6课:遗传算法的两个应用实例
  9. 一级域名怎么申请二级域名
  10. 九章算术 四:《少广》