Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行单元测试报错,FetchError: request to http://localhost:9876/context.html?bypass-es-dev-server failed, reason: connect ECONNREFUSED ::1:9876 #333

Open
17045207 opened this issue Mar 28, 2024 · 0 comments

Comments

@17045207
Copy link

A description of the problem, steps to reproduce, or with code samples, can be hosted on a GitHub repository with a link to the repository. (问题说明,重现步骤,或附上代码示例,可存放 GitHub 仓库并提供仓库链接。)

环境:Node 18.12.0
步骤:拉取主线代码后项目根目录执行yarn init 后 执行 test命令
结果:单元测试未执行成功,报错信息如下
FetchError: request to http://localhost:9876/context.html?bypass-es-dev-server failed, reason: connect ECONNREFUSED ::1:9876 at ClientRequest.<anonymous> (E:\workspace\UIFrameResearch\quard-design2\quark-design\packages\quarkd\node_modules\node-fetch\lib\index.js:1491: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:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant