在本地开发环境的时候出现错误:
# Discourse Ember CLI Proxy Error
FetchError: request to http://127.0.0.1:3000/ failed, reason: connect ECONNREFUSED 127.0.0.1:3000
at ClientRequest. (file:///mnt/d/WorkDir/Repository/Discource-C/discourse/app/assets/javascripts/node_modules/node-fetch/src/index.js:108:11)
at ClientRequest.emit (node:events:513:28)
at Socket.socketErrorListener (node:_http_client:494:9)
at Socket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
![2022-12-09_15-16-55](https://cdn.ossez.com/discourse-uploads/original/2X/e/ee0c3c5b5d278f958456901c1b622a100a9e993a.png)
问题和解决
出现上面的问题的原因是本地进行编译的时候,我们本地计算机上运行了:
bin/ember-cli
服务,但是没有运行:
bundle exec rake autospec
服务。
所以界面上出现了反向代理的错误提示,只需要重新启动所有的 2 个服务就可以了。
https://www.ossez.com/t/discourse/14244
标签:node,错误,28,代理,Discourse,internal,本地 From: https://www.cnblogs.com/huyuchengus/p/16970709.html