Fixé : Gcli 0.2.14 crashe avec l'erreur "found authorities with no name"

gcli smith show-online
Online:
cgeek, moul, poka, HugoTrentesaux, tuxmain, Pini, JosselinFERREIRA
Incoming:
thread 'main' panicked at src/commands/smith.rs:254:22:
 panic! found authorities whith no name```

avec le stackstrace si cela peut aider:

stack backtrace:
   0:      0x9ffac2f46e2 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hffecb437d922f988
   1:      0x9ffac32144c - core::fmt::write::hd9a8d7d029f9ea1a
   2:      0x9ffac2f105f - std::io::Write::write_fmt::h0e1226b2b8d973fe
   3:      0x9ffac2f44b4 - std::sys_common::backtrace::print::he907f6ad7eee41cb
   4:      0x9ffac2f5acb - std::panicking::default_hook::{{closure}}::h3926193b61c9ca9b
   5:      0x9ffac2f5823 - std::panicking::default_hook::h25ba2457dea68e65
   6:      0x9ffac2f5f6d - std::panicking::rust_panic_with_hook::h0ad14d90dcf5224f
   7:      0x9ffac2f5e42 - std::panicking::begin_panic_handler::{{closure}}::h4a1838a06f542647
   8:      0x9ffac2f4bb6 - std::sys_common::backtrace::__rust_end_short_backtrace::h77cc4dc3567ca904
   9:      0x9ffac2f5b74 - rust_begin_unwind
  10:      0x9ffab8f8bb5 - core::panicking::panic_fmt::h940d4fd01a4b4fd1
  11:      0x9ffac31edf1 - core::panicking::panic_display::h277de99b44f66bbb
  12:      0x9ffab8f8b7b - core::option::expect_failed::h9d76e63e47b0f089
  13:      0x9ffabb35622 - <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold::h65e0f78d4eccf6ae
  14:      0x9ffabc567b9 - <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter::hc8eb3e9f05371850
  15:      0x9ffab9fe2d8 - gcli::commands::smith::handle_command::{{closure}}::h659f2ed98553dff7
  16:      0x9ffaba1af6d - gcli::main::{{closure}}::h8f16208542a64ef7
  17:      0x9ffabae819b - tokio::runtime::context::scoped::Scoped<T>::set::h532cd963b5194a94
  18:      0x9ffabc17180 - tokio::runtime::context::set_scheduler::hb1c9a8ffb9823b2d
  19:      0x9ffabae88f3 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::hf60e77e27b7d4566
  20:      0x9ffabc172db - tokio::runtime::runtime::Runtime::block_on::h764c92acfc5b29de
  21:      0x9ffabcfb4c2 - gcli::main::h444804e6abf30fbf
  22:      0x9ffabb3c926 - std::sys_common::backtrace::__rust_begin_short_backtrace::hbda1452835204bab
  23:      0x9ffabc6a9c8 - std::rt::lang_start::{{closure}}::hee806908455458bd
  24:      0x9ffac2e9e93 - std::rt::lang_start_internal::h103c42a9c4e95084
  25:      0x9ffabcfb595 - main
  26:     0x6c0c8c41ec88 - <unknown>
  27:     0x6c0c8c41ed4c - __libc_start_main
  28:      0x9ffab8f925a - _start
  29:                0x0 - <unknown>

A priori défaut momentané (besoin de synchro/update indexer) ? je cloture le thread

gcli smith show-online
Online:
cgeek, moul, poka, HugoTrentesaux, tuxmain, gui_tooun, Pini, JosselinFERREIRA
Incoming:

Outgoing:
2 Likes

Effectivement, j’ai écrit ce code un peu vite sans gérer les erreurs proprement. Tu peux voir ce que ça donne sans indexeur avec l’option --no-indexer.