# Need help to test new Cesium version

**URL:** https://forum.duniter.org/t/need-help-to-test-new-cesium-version/9385
**Category:** Cesium
**Tags:** tests
**Created:** [30 May 2022 16:50 UTC](https://forum.duniter.org/t/need-help-to-test-new-cesium-version/9385 "2022-05-30T16:50:29Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)
#### Post date: [30 May 2022 16:50 UTC](https://forum.duniter.org/t/need-help-to-test-new-cesium-version/9385/1 "2022-05-30T16:50:29Z")

</div>

> [@Bloqué sur "Cesium interroge le nœud Duniter"](https://forum.duniter.org/t/bloque-sur-cesium-interroge-le-noeud-duniter/9377/9):
>
> Reste a tester, et pour cela j’aurais besoin de testeur volontaire 🙂

Pour faire ça il faut cloner le dépôt et lancer `yarn build` ou quelque chose comme ça ?

Parce que pour l’instant [la doc](https://git.duniter.org/clients/cesium-grp/cesium/-/blob/feature/startup_node_selection/doc/build_desktop.md) dit :

> - Clone the [cesium-desktop](https://git.duniter.org/clients/cesium-grp/cesium-desktop) project locally;
> - Follow this project documentation.

et c’est tout.

[edit]

En fait, peut-être qu’il faut suivre le [guide de développement](https://git.duniter.org/clients/cesium-grp/cesium/-/blob/feature/startup_node_selection/doc/development_guide.md). Je vais essayer.

[edit 2]

je lance yarn et j’ai

```auto
error An unexpected error occurred: "https://codeload.github.com/Teleborder/FileSaver.js/tar.gz/b7cf622909258086bc63ad764d08fcaed780ab42: Request failed \"404 Not Found\"".

```

Pourtant c’est dans le `yarn.lock`. Tu n’as pas la même erreur ?

---

<div class="post-metadata">

### Author: ![vit](https://forum.duniter.org/user_avatar/forum.duniter.org/vit/32/2775_2.png) [@vit](https://forum.duniter.org/u/vit)
#### Post date: [16 June 2022 08:46 UTC](https://forum.duniter.org/t/need-help-to-test-new-cesium-version/9385/2 "2022-06-16T08:46:37Z")

</div>

@kimamila, peux-tu faire une Merge Request dans gitlab pour ta branche [feature/startup\_node\_selection](https://git.duniter.org/clients/cesium-grp/cesium/-/tree/feature/startup_node_selection)

Cela facilitera les reviews.

---

<div class="post-metadata">

### Author: ![elmau](https://forum.duniter.org/user_avatar/forum.duniter.org/elmau/32/9320_2.png) [@elmau](https://forum.duniter.org/u/elmau)
#### Post date: [18 June 2022 13:58 UTC](https://forum.duniter.org/t/need-help-to-test-new-cesium-version/9385/3 "2022-06-18T13:58:53Z")

</div>

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.

 ![image](https://forum.duniter.org/uploads/default/original/2X/4/42386a379673c6caf6c1e1fd8a6333a0eae63560.png)

---

<div class="post-metadata">

### Author: ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)
#### Post date: [19 June 2022 14:52 UTC](https://forum.duniter.org/t/need-help-to-test-new-cesium-version/9385/4 "2022-06-19T14:52:30Z")

</div>

Thanks @elmau.

@kimamila after removing this package, I tested Cesium on this branch. It started with the first default node [g1.duniter.org](http://g1.duniter.org). Then I made this node unreachable by changing my `/etc/hosts` and Cesium connected to [g1.cgeek.fr](http://g1.cgeek.fr), the first one in the [**fallback list**](https://git.duniter.org/clients/cesium-grp/cesium/-/blob/def29a0e59885ec94c24e8b25f22d77828d0f7f2/app/config.json#L43-L68). Then I repeated the operation and Cesium connected to [g1.librelois.fr](http://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](https://git.duniter.org/clients/cesium-grp/cesium/-/blob/430eb211008a40462b419dd1f0a386cc8eb748dd/www/js/platform.js#L250)

[platform.js#L250](https://git.duniter.org/clients/cesium-grp/cesium/-/blob/430eb211008a40462b419dd1f0a386cc8eb748dd/www/js/platform.js#L250)

```javascript
var randomIndex = Math.floor(Math.random() * peers.length);

```

But it seems to be not working.

In the browser log, I have the error: `Error: randomPeer is undefined`. I don’t know how to debug JavaScript.

* * *

#### btw 1

I tried adding a node whose https is not on the 443 port (but 7443) in the fallback list

```json
{
  "host": "g1.texu.es",
  "port": 7443
}

```

and Cesium failed to connect to it.

#### btw 2

When the node is unreachable, the label still appears green, which is disturbing.

---

<div class="post-metadata">

### Author: ![kimamila](https://forum.duniter.org/user_avatar/forum.duniter.org/kimamila/32/185_2.png) [@kimamila](https://forum.duniter.org/u/kimamila)
#### Post date: [20 June 2022 11:29 UTC](https://forum.duniter.org/t/need-help-to-test-new-cesium-version/9385/5 "2022-06-20T11:29:01Z")

</div>

> [@HugoTrentesaux](#):
>
> In the browser log, I have the error: `Error: randomPeer is undefined`. I don’t know how to debug JavaScript.

Can you give me the source line ? Should be a simple cause (like $scope that is missing)

---

<div class="post-metadata">

### Author: ![kimamila](https://forum.duniter.org/user_avatar/forum.duniter.org/kimamila/32/185_2.png) [@kimamila](https://forum.duniter.org/u/kimamila)
#### Post date: [20 June 2022 14:27 UTC](https://forum.duniter.org/t/need-help-to-test-new-cesium-version/9385/6 "2022-06-20T14:27:58Z")

</div>

@matograine si tu as le temps de regarder aussi du problème soulevé par @HugoTrentesaux ? ( `Error: randomPeer is undefined`). Merci !

---

<div class="post-metadata">

### Author: ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)
#### Post date: [21 June 2022 17:28 UTC](https://forum.duniter.org/t/need-help-to-test-new-cesium-version/9385/7 "2022-06-21T17:28:58Z")

</div>

> [@kimamila](#):
>
> Can you give me the source line ? Should be a simple cause (like $scope that is missing)

Je vois ceci :

```auto
Error: randomPeer is undefined angular.js:14199:17

```

et la stacktrace

```auto
checkBmaNodeSynchronized/</<@http://localhost:8100/dist/dist_js/app/platform.js:251:17
Id/e/<@http://localhost:8100/lib/angular/angular.min.js:132:434
$eval@http://localhost:8100/lib/angular/angular.min.js:147:69
$digest@http://localhost:8100/lib/angular/angular.min.js:144:131
$apply@http://localhost:8100/lib/angular/angular.min.js:147:363
If/this.$get</p/f<@http://localhost:8100/lib/angular/angular.min.js:140:53
f@http://localhost:8100/lib/angular/angular.min.js:45:492
mg/k.defer/c<@http://localhost:8100/lib/angular/angular.min.js:48:419
setTimeout handler*mg/k.defer@http://localhost:8100/lib/angular/angular.min.js:48:393
p@http://localhost:8100/lib/angular/angular.min.js:140:34
$applyAsync@http://localhost:8100/lib/angular/angular.min.js:147:478
l@http://localhost:8100/lib/angular/angular.min.js:99:161
K@http://localhost:8100/lib/angular/angular.min.js:103:377
tg/</N.onload@http://localhost:8100/lib/angular/angular.min.js:104:339
EventHandlerNonNull*tg/<@http://localhost:8100/lib/angular/angular.min.js:104:174
n@http://localhost:8100/lib/angular/angular.min.js:100:427
zf/this.$get</m/s<@http://localhost:8100/lib/angular/angular.min.js:98:146
Id/e/<@http://localhost:8100/lib/angular/angular.min.js:132:434
$eval@http://localhost:8100/lib/angular/angular.min.js:147:69
$digest@http://localhost:8100/lib/angular/angular.min.js:144:131
$apply@http://localhost:8100/lib/angular/angular.min.js:147:363
If/this.$get</p/f<@http://localhost:8100/lib/angular/angular.min.js:140:53
f@http://localhost:8100/lib/angular/angular.min.js:45:492
mg/k.defer/c<@http://localhost:8100/lib/angular/angular.min.js:48:419
setTimeout handler*mg/k.defer@http://localhost:8100/lib/angular/angular.min.js:48:393
p@http://localhost:8100/lib/angular/angular.min.js:140:34
$applyAsync@http://localhost:8100/lib/angular/angular.min.js:147:478
l@http://localhost:8100/lib/angular/angular.min.js:99:161
K@http://localhost:8100/lib/angular/angular.min.js:103:377
f@http://localhost:8100/lib/angular/angular.min.js:104:390
p@http://localhost:8100/lib/angular/angular.min.js:103:319
f@http://localhost:8100/lib/angular/angular.min.js:45:492
mg/k.defer/c<@http://localhost:8100/lib/angular/angular.min.js:48:419
setTimeout handler*mg/k.defer@http://localhost:8100/lib/angular/angular.min.js:48:393
tg/<@http://localhost:8100/lib/angular/angular.min.js:105:155
n@http://localhost:8100/lib/angular/angular.min.js:100:427
zf/this.$get</m/s<@http://localhost:8100/lib/angular/angular.min.js:98:146
Id/e/<@http://localhost:8100/lib/angular/angular.min.js:132:434
$eval@http://localhost:8100/lib/angular/angular.min.js:147:69
$digest@http://localhost:8100/lib/angular/angular.min.js:144:131
$apply@http://localhost:8100/lib/angular/angular.min.js:147:363
If/this.$get</p/f<@http://localhost:8100/lib/angular/angular.min.js:140:53
f@http://localhost:8100/lib/angular/angular.min.js:45:492
mg/k.defer/c<@http://localhost:8100/lib/angular/angular.min.js:48:419
angular.js:14199:17

```

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.

---

<div class="post-metadata">

### Author: ![kimamila](https://forum.duniter.org/user_avatar/forum.duniter.org/kimamila/32/185_2.png) [@kimamila](https://forum.duniter.org/u/kimamila)
#### Post date: [24 June 2022 20:48 UTC](https://forum.duniter.org/t/need-help-to-test-new-cesium-version/9385/8 "2022-06-24T20:48:25Z")

</div>

Du nouveau sur tes tests sur Cesium ?

---

<div class="post-metadata">

### Author: ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)
#### Post date: [24 June 2022 21:05 UTC](https://forum.duniter.org/t/need-help-to-test-new-cesium-version/9385/9 "2022-06-24T21:05:10Z")

</div>

Non, désolé. Pas eu de temps pour toucher à mon ordi perso, je passe déjà trop de temps sur mon ordi pro avec la fin de mon boulot

---

<div class="post-metadata">

### Author: ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)
#### Post date: [28 February 2023 12:45 UTC](https://forum.duniter.org/t/need-help-to-test-new-cesium-version/9385/10 "2023-02-28T12:45:25Z")

</div>

> [@HugoTrentesaux](#):
>
> je lance yarn et j’ai
> 
> ```auto
> error An unexpected error occurred: "https://codeload.github.com/Teleborder/FileSaver.js/tar.gz/b7cf622909258086bc63ad764d08fcaed780ab42: Request failed \"404 Not Found\"".
> 
> ```
> 
> Pourtant c’est dans le `yarn.lock`. Tu n’as pas la même erreur ?

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 :

```auto
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.
