[HPM] Error occurred while trying to proxy request /account/login/ from localhost:3000 to http://127
[HPM] Error occurred while trying to proxy request /account/login/ from localhost:3000 to http://127.0.0.1:8000(ECONNREFUSED)(https://nodejs.org/api/errors.html#errors_common_system_errors)
这个问题主要是从端口3000映射到8000端口失败
首先查看npm错误日志,通过查看日志,参考文档
https://segmentfault.com/q/1010000041491241
缺少nvm依赖包,安装好依赖包之后重新启动 api 开发环境服务python manage.py runserver
发现代码报错,原因是centos自带的python环境是2.X版本的,而我部署的项目环境要求是3.X版本,于是就是更新python版本
升级后,yum报错,因为yum依赖于python2.X版本,修改配置文件usr/bin/yum 将python改成python2.7
使用python3启动api服务
但是127.0.0.1:3000映射到8000端口还是失败了
解决方法
查看防火墙规则iptables -nL
清空默认表Filter的所有规则iptables -F
之后就可以正常启动了,仅供参考
[HPM] Error occurred while trying to proxy request /account/login/ from localhost:3000 to http://127相关推荐
- [HPM] Error occurred while trying to proxy request /login/account from localhost:8000 to localhost:8
[HPM] Error occurred while trying to proxy request /login/account from localhost:8000 to localhost:8 ...
- [HPM] Error occurred while trying to proxy request
突然出现的报错: [HPM] Error occurred while trying to proxy request /api/noauth/oauth2Clients from localhost ...
- npm 报错:`[HPM] Error occurred while trying to proxy request (ECONNREFUSED)`
npm 报错:[HPM] Error occurred while trying to proxy request /users from localhost:8000 to https://loca ...
- [HPM] Error occurred while trying to proxy request 终端报错
后台报错信息: [HPM] Error occurred while trying to proxy request /aws/compreElement?type=prec&element= ...
- 解决 [HPM] Error occurred while trying to proxy request
之前vue运行访问接口本来没有问题的,今天突然访问老是出现这个问题,常见情况有以下情况,比如: 1.网络不稳定的原因(我就是这种),气气!!!. 2.代理的接口写错, 3.端口被占用 4.后台服务地址 ...
- Error occurred while trying to proxy request
Error occurred while trying to proxy request /api/v1/ProveApplys/GetApplyTypes from 127.0.0.1:8010 t ...
- Error occurred while trying to proxy request项目突然起不来了
1. 如果你是之前还能项目能正常运行,突然启不来了,或者别人启起来,你启不来,请尝试以下办法 (1)npm版本过低 步骤一:查看npm版本:npm -v 步骤二:更新到最新版本:npm -g inst ...
- vue 设置代理报错;occurred while trying to proxy request xxx
报错: [HPM] Error occurred while trying to proxy request /oauth/validate from localhost:8080 to localh ...
- 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: ...
最新文章
- 11 为了进一步_小米11正式官宣!12月28号整装待发,这几点或成关键
- 云炬WEB开发笔记2-7 代理神器CharlesFiddler
- 计算机四年级下册教案泰山版,泰山版信息技术四年级下册4、制作作息时间表教案设计...
- 阻止中文输入法输入拼音的时候触发input事件
- 第五十四期:MongoDB与MySQL:如何选择
- 试试把OJ题意抽象成物理模型(洛谷P1007题题解,Java语言描述)
- 前沿 | 使用Transformers进行端到端目标识别
- html基础开发-jQuery框架基础语法攻略(攻略一)
- 索尼Xperia 5 II官方高清渲染图曝光:还是那个熟悉的小屏旗舰
- Kubernetes资源分配(limit/request)
- linux 重新安装内核,升级操作系统内核(不重新安装UltraPath)
- 容易被忽略的注解,你能了解多少?
- 筹备两年,60万字诚意续作《腾讯游戏开发精粹Ⅱ》正式发布
- 本地上支持apache多站点访问
- Win10校园网锐捷客户端犯病 可能有用的2个措施
- Percona XtraBackup User Manual
- gcc -fomit-frame-pointer选项,-fno-dwarf2-cfi-asm 选项
- 良心推荐:12个免费学习网站,赶紧收藏
- HTML3D立体城市特效代码
- linux,Windows11双系统安装及开机引导