[UI] "canceled - Unable to reach the management server" notification when switching from project to default view on Instances page (4.20.3)
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Bắt đầu từ beforeRouteLeave trong AutogenView.vue, nơi listVirtualMachines bị hủy, và từ changeProject trong ProjectMenu.vue, nơi kích hoạt việc chuyển route. Sau đó kiểm tra request.js, nơi có logic hủy và trình xử lý lỗi toàn cục, để hiểu vì sao một CanceledError với ERR_CANCELED lại dẫn đến thông báo 'Unable to reach the management server'. Hoàn thành khi một request bị hủy có chủ đích được bỏ qua âm thầm, còn lỗi mạng thực sự vẫn hiển thị thông báo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 3.1k
- Fork
- 1.4k
- Merge trung bình
- 10 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/cloudstack
-
Routed network ACL rules with a protocol number are not applied on the VR (ip nexthdr instead of ip protocol)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởcomponent:virtual-router
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/cloudstack#14351 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
listPublicIpAddresses NullPointerException on shared networks with a VR (4.22)Có thể đã có người làm @MitchDrage đã nhận 18 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
apache/cloudstack#14248 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CKS: upgradeKubernetesCluster fails on control node when binaries ISO ships headlamp.yaml instead of dashboard.yamlCó thể đã có người làm @mw-0 đã nhận 19 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/cloudstack#14244 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Resize volume API validation errors are not displayed in the UICó thể đã có người làm @sathvikaragi đã nhận 22 ngày trước. Đang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
apache/cloudstack#14222 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
create-kubernetes-binaries-iso.sh builds the ISO without setting a volume ID on EL8 based os'sĐang mởbug component:kubernetes
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
apache/cloudstack#14180 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/cloudstack
Issue tương tự
-
:ml/Transform >bug Team:ML
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 64/100
elastic/elasticsearch#161960 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chore: update release scheduleĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Tiviacz1337/Travelers-Backpack#1629 ·
-
bug: Authentication and App Check listeners leak the Activity and WebView on AndroidCó thể đã có người làm @harbinzhang đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
capawesome-team/capacitor-firebase#1050 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
capawesome-team/capacitor-plugins#1134 ·
Maintainer thường phản hồi trong vòng 1 ngày