Skip to content

Instantly share code, notes, and snippets.

@allquixotic
Created December 1, 2022 12:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save allquixotic/c908e043dff4ff9219463209756d0618 to your computer and use it in GitHub Desktop.
$ DONTRUN=web RUST_BACKTRACE=1 cargo +nightly run
Compiling reminder_rs v1.6.10 (/home/user/reminder-rs)
warning: unused variable: `tzid`
--> src/time_parser.rs:214:61
|
214 | CalendarDateTime::WithTimezone { date_time, tzid } => Some(date_time.timestamp()),
| ^^^^ help: try ignoring the field: `tzid: _`
|
= note: `#[warn(unused_variables)]` on by default
warning: `reminder_rs` (bin "reminder_rs") generated 1 warning (run `cargo fix --bin "reminder_rs"` to apply 1 suggestion)
Finished dev [unoptimized + debuginfo] target(s) in 20.30s
Running `target/debug/reminder_rs`
natural_parser of in 20 minutes
to_event: BEGIN:VEVENT
DTSTAMP:20221201T121847Z
DTEND:20221201T133847Z
DTSTART:20221201T123847Z
SUMMARY:minutes
UID:74d38126-a8d4-4153-907c-f0a3680c9a1c
END:VEVENT
Timestamp for in 20 minutes = 1669898327
natural_parser of in 20 minutes
to_event: BEGIN:VEVENT
DTSTAMP:20221201T121851Z
DTEND:20221201T133851Z
DTSTART:20221201T123851Z
SUMMARY:minutes
UID:bed5d38a-997c-4675-a02d-4cd895512f9e
END:VEVENT
Timestamp for in 20 minutes = 1669898331
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: ColumnDecode { index: "0", source: Utf8Error { valid_up_to: 1, error_len: Some(1) } }', src/models/reminder/builder.rs:75:10
stack backtrace:
0: rust_begin_unwind
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/core/src/panicking.rs:65:14
2: core::result::unwrap_failed
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/core/src/result.rs:1791:5
3: core::result::Result<T,E>::unwrap
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/core/src/result.rs:1113:23
4: reminder_rs::models::reminder::builder::ReminderBuilder::build::{{closure}}
at ./src/models/reminder/builder.rs:68:28
5: reminder_rs::models::reminder::builder::MultiReminderBuilder::build::{{closure}}
at ./src/models/reminder/builder.rs:313:46
6: reminder_rs::commands::reminder_cmds::create_reminder::{{closure}}
at ./src/commands/reminder_cmds.rs:725:58
7: reminder_rs::commands::reminder_cmds::remind::inner::{{closure}}
at ./src/commands/reminder_cmds.rs:629:9
8: reminder_rs::commands::reminder_cmds::remind::{{closure}}::{{closure}}
at ./src/commands/reminder_cmds.rs:604:1
9: <core::pin::Pin<P> as core::future::future::Future>::poll
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/core/src/future/future.rs:124:9
10: poise::dispatch::slash::dispatch_interaction::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/poise-0.4.1/src/dispatch/slash.rs:103:24
11: poise::dispatch::dispatch_event::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/poise-0.4.1/src/dispatch/mod.rs:104:13
12: poise::framework::raw_dispatch_event::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/poise-0.4.1/src/framework/mod.rs:266:49
13: poise::framework::Framework<U,E>::new::{{closure}}::{{closure}}::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/poise-0.4.1/src/framework/mod.rs:104:62
14: <core::pin::Pin<P> as core::future::future::Future>::poll
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/core/src/future/future.rs:124:9
15: <poise::event::EventWrapper<F> as serenity::client::event_handler::EventHandler>::interaction_create::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/poise-0.4.1/src/event.rs:28:77
16: <core::pin::Pin<P> as core::future::future::Future>::poll
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/core/src/future/future.rs:124:9
17: serenity::client::dispatch::handle_event::{{closure}}::{{closure}}::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/serenity-0.11.5/src/client/dispatch.rs:741:77
18: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/core.rs:208:17
19: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/loom/std/unsafe_cell.rs:14:9
20: tokio::runtime::task::core::Core<T,S>::poll
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/core.rs:197:13
21: tokio::runtime::task::harness::poll_future::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/harness.rs:483:19
22: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/core/src/panic/unwind_safe.rs:271:9
23: std::panicking::try::do_call
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/std/src/panicking.rs:483:40
24: __rust_try
25: std::panicking::try
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/std/src/panicking.rs:447:19
26: std::panic::catch_unwind
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/std/src/panic.rs:137:14
27: tokio::runtime::task::harness::poll_future
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/harness.rs:471:18
28: tokio::runtime::task::harness::Harness<T,S>::poll_inner
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/harness.rs:107:27
29: tokio::runtime::task::harness::Harness<T,S>::poll
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/harness.rs:61:15
30: tokio::runtime::task::raw::poll
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/raw.rs:194:5
31: tokio::runtime::task::raw::RawTask::poll
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/raw.rs:134:18
32: tokio::runtime::task::LocalNotified<S>::run
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/mod.rs:430:9
33: tokio::runtime::scheduler::multi_thread::worker::Context::run_task::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/scheduler/multi_thread/worker.rs:439:13
34: tokio::runtime::coop::with_budget
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/coop.rs:102:5
35: tokio::runtime::coop::budget
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/coop.rs:68:5
36: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/scheduler/multi_thread/worker.rs:438:9
37: tokio::runtime::scheduler::multi_thread::worker::Context::run
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/scheduler/multi_thread/worker.rs:405:24
38: tokio::runtime::scheduler::multi_thread::worker::run::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/scheduler/multi_thread/worker.rs:390:17
39: tokio::macros::scoped_tls::ScopedKey<T>::set
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/macros/scoped_tls.rs:61:9
40: tokio::runtime::scheduler::multi_thread::worker::run
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/scheduler/multi_thread/worker.rs:387:5
41: tokio::runtime::scheduler::multi_thread::worker::Launch::launch::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/scheduler/multi_thread/worker.rs:365:45
42: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/blocking/task.rs:42:21
43: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/core.rs:208:17
44: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/loom/std/unsafe_cell.rs:14:9
45: tokio::runtime::task::core::Core<T,S>::poll
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/core.rs:197:13
46: tokio::runtime::task::harness::poll_future::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/harness.rs:483:19
47: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/core/src/panic/unwind_safe.rs:271:9
48: std::panicking::try::do_call
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/std/src/panicking.rs:483:40
49: __rust_try
50: std::panicking::try
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/std/src/panicking.rs:447:19
51: std::panic::catch_unwind
at /rustc/e0098a5cc3a87d857e597af824d0ce1ed1ad85e0/library/std/src/panic.rs:137:14
52: tokio::runtime::task::harness::poll_future
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/harness.rs:471:18
53: tokio::runtime::task::harness::Harness<T,S>::poll_inner
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/harness.rs:107:27
54: tokio::runtime::task::harness::Harness<T,S>::poll
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/harness.rs:61:15
55: tokio::runtime::task::raw::poll
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/raw.rs:194:5
56: tokio::runtime::task::raw::RawTask::poll
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/raw.rs:134:18
57: tokio::runtime::task::UnownedTask<S>::run
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/task/mod.rs:467:9
58: tokio::runtime::blocking::pool::Task::run
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/blocking/pool.rs:159:9
59: tokio::runtime::blocking::pool::Inner::run
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/blocking/pool.rs:510:17
60: tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}
at /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.22.0/src/runtime/blocking/pool.rs:468:13
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment