Discourse 本地开发环境时候出现代理错误

2022-12-11 09:37:32 浏览数 (2)

在本地开发环境的时候出现错误:

代码语言:javascript复制
# 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)

问题和解决

出现上面的问题的原因是本地进行编译的时候,我们本地计算机上运行了:

代码语言:javascript复制
bin/ember-cli

服务,但是没有运行:

代码语言:javascript复制
bundle exec rake autospec

服务。

所以界面上出现了反向代理的错误提示,只需要重新启动所有的 2 个服务就可以了。

https://www.ossez.com/t/discourse/14244

0 人点赞