simoneorlando97 / webeep-cli

A tool to use the webeep platform of the Politecnico di Milano directly from the command line.
GNU General Public License v2.0
9 stars 1 forks source link

[MacOS] Index Out of Bounds error #1

Open andreabosisio opened 3 years ago

andreabosisio commented 3 years ago

After successfully executing all the steps for the installation, when I launch 'webeep' on MacOS terminal i got the following error:

thread 'main' panicked at 'byte index 7 is out of bounds of `Errore`', src/utils/html_parser.rs:21:25
stack backtrace:
   0:        0x10a1f8fc4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h80b40bec9b25cdb7
   1:        0x10a21472e - core::fmt::write::h367e10cc391177e1
   2:        0x10a1f3006 - std::io::Write::write_fmt::h69f760cf0ceceb64
   3:        0x10a1fae89 - std::panicking::default_hook::{{closure}}::h6b461dbc832ae479
   4:        0x10a1fa970 - std::panicking::default_hook::hf6b37b6d4ff1b717
   5:        0x10a1fb4f5 - std::panicking::rust_panic_with_hook::hcc0074a2cdf70335
   6:        0x10a1fb035 - std::panicking::begin_panic_handler::{{closure}}::hafebb92bbb4f046c
   7:        0x10a1f9428 - std::sys_common::backtrace::__rust_end_short_backtrace::hbd3b6a5769847c0d
   8:        0x10a1faf9a - _rust_begin_unwind
   9:        0x10a2262af - core::panicking::panic_fmt::h84e4b5f5d5160f07
  10:        0x10a226688 - core::str::slice_error_fail::h22c6c4b91ff54d65
  11:        0x109fb71c8 - webeep::utils::html_parser::get_course_name::hc852915a446e5793
  12:        0x109fba0c5 - webeep::controller::controller::Controller::start::h675ca03e0201fcfc
  13:        0x109fae767 - webeep::main::hb5619191eb90bce2
  14:        0x109fbc31a - std::sys_common::backtrace::__rust_begin_short_backtrace::hb15e1320413d2af7
  15:        0x109fbc33c - std::rt::lang_start::{{closure}}::h9d4daa6d19827a6d
  16:        0x10a1fb944 - std::rt::lang_start_internal::h0c37a46739a0311d
  17:        0x109fb0f89 - _main
simoneorlando97 commented 3 years ago

Do you have the password expiring on the online services of the Politecnico? If yes you have to update the password on online services and then update it on webeep cli via webeep --login.

andreabosisio commented 3 years ago

No, it's not expiring. Anyway I launched 'webeep' with '--login' and i re-insered my credentials (Codice Persona and Password) but I still getting the same error. PS: i got 'Successfully login!' before getting the error.

simoneorlando97 commented 3 years ago

Have you checked all the elements I wrote in the readme in the "attention" section?

andreabosisio commented 3 years ago

Those are my "settings". I've also set Visualizza="Tutti" to show all the courses

Schermata 2021-10-15 alle 18 46 01

.

simoneorlando97 commented 3 years ago

Are you signed up for some strange webeep course? In addition to that of the CCS?

andreabosisio commented 3 years ago

Yes, i added some courses manually because i wanted to have access to some materials.