[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時間
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/cloudstack のほかの issue
-
Routed network ACL rules with a protocol number are not applied on the VR (ip nexthdr instead of ip protocol)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンcomponent:virtual-router
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apache/cloudstack#14351 ·
メンテナーはふだん 1 日以内に返信
-
listPublicIpAddresses NullPointerException on shared networks with a VR (4.22)対応中かも @MitchDrage が 18 日前に担当しました。 オープン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 が 19 日前に担当しました。 オープン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
-
:ml/Transform >bug Team:ML
難易度 2/5 半日 初心者へのやさしさ 64/100
elastic/elasticsearch#161960 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Tiviacz1337/Travelers-Backpack#1629 ·
-
bug: Authentication and App Check listeners leak the Activity and WebView on Android対応中かも @harbinzhang が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
capawesome-team/capacitor-firebase#1050 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
capawesome-team/capacitor-plugins#1134 ·
メンテナーはふだん 1 日以内に返信