luleyleo / untis-rs

Rust library to access the webuntis jsonrpc
MIT License
5 stars 6 forks source link

Serde error: data did not match any variant of untagged enum Response #6

Closed Paddyk45 closed 1 year ago

Paddyk45 commented 1 year ago

When I log in, serde thorws the error "data did not match any variant of untagged enum Response"

thread 'main' panicked at src/main.rs:4:62:
called `Result::unwrap()` on an `Err` value: Serde(Error("data did not match any variant of untagged enum Response", line: 0, column: 0))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Paddyk45 commented 1 year ago

Ok the error is because person id is negative (usize can't store that) and person type that is over 5