[UI] "canceled - Unable to reach the management server" notification when switching from project to default view on Instances page (4.20.3)
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 65/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- frontend
Direzione di ricerca
Inizia da beforeRouteLeave in AutogenView.vue, dove listVirtualMachines viene annullata, e da changeProject in ProjectMenu.vue, che attiva il cambio di rotta. Poi controlla request.js, dove si trovano l'annullamento e il gestore globale degli errori, per capire perché un CanceledError con ERR_CANCELED arriva alla notifica 'Unable to reach the management server'. Il lavoro è completato quando una richiesta annullata intenzionalmente viene ignorata in silenzio, mentre un vero errore di rete continua a mostrare la notifica.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Java
- Stelle
- 3.1k
- Fork
- 1.4k
- Merge medio
- 10g 6h
- PR unite (30g)
- 11
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/cloudstack
-
Routed network ACL rules with a protocol number are not applied on the VR (ip nexthdr instead of ip protocol)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertacomponent:virtual-router
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/cloudstack#14351 ·
I maintainer di solito rispondono entro 1 giorno
-
listPublicIpAddresses NullPointerException on shared networks with a VR (4.22)Forse già presa @MitchDrage l’ha presa 18 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
apache/cloudstack#14248 ·
I maintainer di solito rispondono entro 1 giorno
-
CKS: upgradeKubernetesCluster fails on control node when binaries ISO ships headlamp.yaml instead of dashboard.yamlForse già presa @mw-0 l’ha presa 19 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
apache/cloudstack#14244 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Resize volume API validation errors are not displayed in the UIForse già presa @sathvikaragi l’ha presa 22 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
apache/cloudstack#14222 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
create-kubernetes-binaries-iso.sh builds the ISO without setting a volume ID on EL8 based os'sApertabug component:kubernetes
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
apache/cloudstack#14180 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/cloudstack
Issue simili
-
:ml/Transform >bug Team:ML
Difficoltà 2/5 Mezza giornata Idoneità per principianti 64/100
elastic/elasticsearch#161960 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Tiviacz1337/Travelers-Backpack#1629 ·
-
bug: Authentication and App Check listeners leak the Activity and WebView on AndroidForse già presa @harbinzhang l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
capawesome-team/capacitor-firebase#1050 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
capawesome-team/capacitor-plugins#1134 ·
I maintainer di solito rispondono entro 1 giorno