andrewbanchich / shreddit

Delete your Reddit data.
MIT License
247 stars 11 forks source link

Error with edit only #79

Open untuned opened 1 year ago

untuned commented 1 year ago

Getting this error when I run the script. I have specified my GDPR directory, and have selected edit only as an option.

Full backtrace:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error(Deserialize { pos: Some(Position { byte: 39619, line: 423, record: 91 }), err: DeserializeError { field: None, kind: Message("data did not match any variant of untagged enum Source") } })', src/sources/gdpr.rs:17:41
stack backtrace:
   0:        0x108392836 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hae51cb91d407e2ef
   1:        0x1083b123b - core::fmt::write::h746bc0969202388b
   2:        0x10838f0fc - std::io::Write::write_fmt::h4098c2c7437a0bd7
   3:        0x10839260a - std::sys_common::backtrace::print::h8360bf0158e89b36
   4:        0x108393c60 - std::panicking::default_hook::{{closure}}::hedf04c568eb6e0bc
   5:        0x108393a10 - std::panicking::default_hook::h62889b2c29e2347d
   6:        0x1083941ba - std::panicking::rust_panic_with_hook::h22edd02828aff274
   7:        0x1083940d4 - std::panicking::begin_panic_handler::{{closure}}::h6895f44a9b7e2caa
   8:        0x108392c79 - std::sys_common::backtrace::__rust_end_short_backtrace::h013519e9b77978c5
   9:        0x108393e1d - _rust_begin_unwind
  10:        0x1083cd933 - core::panicking::panic_fmt::h2a51b60c12d11322
  11:        0x1083cddc5 - core::result::unwrap_failed::h52a6a55d409027df
  12:        0x108012827 - shreddit::main::{{closure}}::h0ebfa9763ec7fd1b
  13:        0x10806d879 - tokio::runtime::scheduler::current_thread::Context::enter::h5bba552e31bb72a4
  14:        0x108008343 - tokio::macros::scoped_tls::ScopedKey<T>::set::h900dc982390d4cc9
  15:        0x10806d4f4 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::h1cf7d3c0bff5eff2
  16:        0x10803b054 - tokio::runtime::runtime::Runtime::block_on::h9bc41c5dc33932cb
  17:        0x10802216c - shreddit::main::h8d61da09c2b5774c
  18:        0x10801c546 - std::sys_common::backtrace::__rust_begin_short_backtrace::h53a09829534cb3c6
  19:        0x10802e68c - std::rt::lang_start::{{closure}}::hde4d058064610883
  20:        0x10838ace2 - std::rt::lang_start_internal::h36134e47b0b0d769
  21:        0x10802971c - _main
  22:     0x7ff80b9be3a6 - <unknown>

Please let me know if I should provide anything else.

trininite commented 1 year ago

I was having the same problem and realized it was always complaining about gdpr.rs so i just tried not including --gdpr-export-dir to it and it seems to work. It throws a fair few warnings but seems to edit all the comments i had.

heres the cli line that worked for me:

.\shreddit-windows.exe --username "" --password "" --client-id "" --client-secret "" -r "" --edit-only