Yesterday I cloned Cesium repository and I got this error. Search in Internet, I found that alferov/angular-file-saver replace to Teleborder/FileSaver.js, then, only delete this dependence in package.json and install and run correctly.
@kimamila after removing this package, I tested Cesium on this branch. It started with the first default node g1.duniter.org. Then I made this node unreachable by changing my /etc/hosts and Cesium connected to g1.cgeek.fr, the first one in the fallback list. Then I repeated the operation and Cesium connected to g1.librelois.fr, and so on.
So the fallback mechanism works, but we have to previously shuffle the node list to achieve the required behavior in order to avoid overloading always the same nodes. This should be done here
Mais comme je dis, je ne sais pas débugger du JavaScript, donc c’est bien si @matograine a le temps de reproduire le bug.
[edit]
Je me rends compte que je n’avais pas ton commit 430eb211008a40462b419dd1f0a386cc8eb748dd du 31 mai 2022, il n’était peut-être pas publié ? → Je n’ai plus l’erreur après ce commit.
J’ai toujours ça sur feature/startup_node_selection, donc je cherry-pick mon commit 9c316813.
Après ça l’installation fonctionne, je peux lancer Cesium.
Ensuite, pas mal d’erreurs dans la console navigateur :
Error: Websocket wss://g1.duniter.org/ws/block was closed!
XHRGEThttps://g1.e-is.pro/blockchain/current
[HTTP/1.1 502 Bad Gateway 197ms]
Blocage d’une requête multiorigine (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://duniter.g1.qc.fr:20901/blockchain/current. Raison : échec de la requête CORS. Code d’état : (null).
[http] Get HTTP error {status: -1} on [http://duniter.g1.qc.fr:20901/blockchain/current] http-services.js:49:17
Blocage d’une requête multiorigine (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur https://cloudanua.ddns.net/blockchain/current. Raison : échec de la requête CORS. Code d’état : (null).
[http] Get HTTP error {status: -1} on [https://cloudanua.ddns.net/blockchain/current] http-services.js:49:17
Blocage d’une requête multiorigine (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://37.59.240.172:20900/blockchain/current. Raison : échec de la requête CORS. Code d’état : (null).
[http] Get HTTP error {status: -1} on [http://37.59.240.172:20900/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.e-is.pro/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://82.64.205.150/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.mithril.re/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.duniter.org/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://91.121.157.13:10901/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://namarie.nohost.me/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://10.45.43.145:10900/blockchain/current] http-services.js:49:17
XHRGEThttp://g1a.jytou.fr:9002/blockchain/current
[HTTP/1.1 400 Bad Request 127ms]
[http] Get HTTP error {status: -1} on [https://g1.cloud-libre.eu/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.cloud-libre.eu/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://g1.cgeek.fr:35556/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://82.66.23.221:33607/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.le-sou.org/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://g1.le-sou.org/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://82.65.178.243:10901/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://80.13.174.239:20903/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://90.58.64.181:20902/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.syoul.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.syoul.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.anuanua.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://83.198.62.173:10900/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://31.24.244.202:10901/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.riky.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.nuaje.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://g1a.jytou.fr:9002/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://81.57.152.178:57586/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.cuates.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.cuates.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://144.91.111.40:10900/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.monnaie-libre-44.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.monnaie-libre-44.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://[2a01:e0a:3c7:6670::8f19:6fd9]:21269/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.occitanet.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.texu.es:7443/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://37.187.131.59:7443/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.redsoberana.com/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.lacoursefolle.com/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://eclora.ynh.fr/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter-v1-g1.axiom-team.fr/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.openmyprojects.com/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://0.0.0.0:10501/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://remuniter.cgeek.fr:16120/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://g1.moul.re:10901/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.moul.re/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.computhings.be/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.agoranet.info/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.analysons.com/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://78.196.180.52/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.pini.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://narnia.nohost.me/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.spaceworld.freemyip.com/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://78.199.190.82:10903/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://78.197.134.147:10901/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://vit.fdn.org:10900/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://80.67.176.219:10900/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.asycn.io/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1-test.asycn.io/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://fania.g1server.net/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.g1server.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://gibraleon.g1server.net/blockchain/current] 2 http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1-vijitatman.es/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1-vijitatman.es/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.soberaniadigital.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.soberaniadigital.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://panoramix.toutat.is/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://panoramix.toutat.is/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://abyayala.g1labs.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://abyayala.g1labs.net/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.adn.life/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.adn.life/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter.adn.life/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://monnaie-libre.ortie.org/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://monnaie-libre.ortie.org/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://[2a01:cb0d:5c2:fa00:21e:68ff:feab:389a]/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.trentesaux.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://g1.trentesaux.fr/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [http://duniter971.dns1.us:9710/blockchain/current] http-services.js:49:17
[http] Get HTTP error {status: -1} on [https://duniter971.dns1.us/blockchain/current]
Mais j’ai bien
Calcul de l’état du réseau Ğ1…
et Cesium peut choisir des nœuds différent (enfin j’ai eu cinq fois g1.duniter.org et une fois g1.cgeek.fr)
Par contre, c’est assez long (~10-15 secondes) avant que le nœud soit choisi.