[UI] "canceled - Unable to reach the management server" notification when switching from project to default view on Instances page (4.20.3)
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- javascript
- 领域
- frontend
调研方向
从 AutogenView.vue 中的 beforeRouteLeave 开始,那里会取消 listVirtualMachines;再看 ProjectMenu.vue 中的 changeProject,它会触发路由切换。然后检查 request.js,取消逻辑和全局错误处理程序都在那里,弄清楚为什么带有 ERR_CANCELED 的 CanceledError 会弹出“Unable to reach the management server”通知。完成的标准是:主动取消的请求被静默忽略,而真正的网络故障仍然显示该通知。
由索引模型根据 Issue 内容生成。
描述
problem
After upgrading to 4.20.3.1, the UI shows an error notification every time I switch from a project view to the default view while the Instances page is open:
"canceled – Unable to reach the management server or a browser extension may be blocking the Network request."
This is not a network issue: nothing is logged in management-server.log at that moment, and the same error is shown when connecting to the management server directly (no reverse proxy). The instance list itself loads correctly after the switch.
The browser console shows that the in-flight listVirtualMachines request is intentionally cancelled by the UI on route change, and the resulting CanceledError is treated as a network failure and reported to the user:
AutogenView.vue:658 DEBUG - Due to route change, ignoring results for any on-going API request listVirtualMachines
CancelToken.js:58 Uncaught (in promise) i {message: 'canceled', name: 'CanceledError', code: 'ERR_CANCELED', ...}
cancel @ request.js:196
beforeRouteLeave @ AutogenView.vue:659
...
push @ vue-router.esm-bundler.js:2986
changeProject @ ProjectMenu.vue:92
versions
ACS: 4.20.3.1 (upgraded from [previous version])
Management servers: 3 nodes, Ubuntu 24.04, behind HAProxy (also reproducible when bypassing the proxy)
Browsers/OS: reproducible in multiple browsers and operating systems Chrome/Windows 11, Firefox/Ubuntu
The steps to reproduce the bug
- Log in to the UI and select a project in the project selector.
- Open Compute > Instances (the listing is shown for the project).
- While on the Instances page, switch from the project view to the default view.
- The error notification appears.
What to do about it?
The in-flight listVirtualMachines request is cancelled in beforeRouteLeave (AutogenView.vue) when the project is changed (changeProject in ProjectMenu.vue). The resulting CanceledError (ERR_CANCELED) is not filtered out and reaches the global error handler, which shows the "Unable to reach the management server..." notification.
A deliberately cancelled request should probably be silently ignored instead of being reported as a network error.
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 1.4k
- 平均合并
- 10 天 6 小时
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/cloudstack 的其他 Issue
-
Routed network ACL rules with a protocol number are not applied on the VR (ip nexthdr instead of ip protocol)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭component:virtual-router
难度 2/5 1-3 小时 新手友好度 82/100
apache/cloudstack#14351 ·
维护者通常 1 天内回复
-
listPublicIpAddresses NullPointerException on shared networks with a VR (4.22)可能已有人在做 @MitchDrage 于 19 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 80/100
apache/cloudstack#14248 ·
维护者通常 1 天内回复
-
CKS: upgradeKubernetesCluster fails on control node when binaries ISO ships headlamp.yaml instead of dashboard.yaml可能已有人在做 @mw-0 于 20 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
apache/cloudstack#14244 · 1 条评论 ·
维护者通常 1 天内回复
-
Resize volume API validation errors are not displayed in the UI可能已有人在做 @sathvikaragi 于 22 天前认领。 未关闭bug
难度 1/5 1 小时以内 新手友好度 90/100
apache/cloudstack#14222 · 2 条评论 ·
维护者通常 1 天内回复
-
bug component:kubernetes
难度 1/5 1 小时以内 新手友好度 88/100
apache/cloudstack#14180 ·
维护者通常 1 天内回复
查看 apache/cloudstack 的全部 Issue
相似的 Issue
-
RRateLimiter acquire methods accept negative permits and raise available permits above the rate.未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 4 天内回复
-
难度 1/5 1 小时以内 新手友好度 75/100
krahets/hello-algo#1993 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
NationalSecurityAgency/ghidra#9884 ·
维护者通常 2 天内回复
-
Status: Pending Review Type: Feature Request
难度 1/5 1 小时以内 新手友好度 82/100
OpenRefine/OpenRefine#8019 ·
维护者通常 1 天内回复
-
[TEMP] pin maven version to 3.9.x可能已有人在做 @petrenyi-mark 今天认领。 未关闭
难度 2/5 1 小时以内 新手友好度 62/100