Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails with "failed to deserialize children blocks" error #5

Open
jtomaszewski opened this issue May 17, 2023 · 0 comments
Open

Fails with "failed to deserialize children blocks" error #5

jtomaszewski opened this issue May 17, 2023 · 0 comments

Comments

@jtomaszewski
Copy link

When running this I get the following error:

$ RUST_BACKTRACE=full ./notion2pandoc -s 123 -i a1ae3b9a-d15e-472b-a629-fb3374249f88                                                                                                                                                             

thread 'main' panicked at 'failed to deserialize children blocks of a1ae3b9a-d15e-472b-a629-fb3374249f88', src/notion.rs:325:33
stack backtrace:
   0:        0x10321e1a6 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he84dde8223670de4
   1:        0x10323b15a - core::fmt::write::h0721d4325d1d86bb
   2:        0x10321aabc - std::io::Write::write_fmt::hf4d04b4d333539fa
   3:        0x10321df8a - std::sys_common::backtrace::print::hed06273df3ccacbe
   4:        0x10321f6c3 - std::panicking::default_hook::{{closure}}::he8c58e8d0abf03c5
   5:        0x10321f418 - std::panicking::default_hook::h8320561bf55c0290
   6:        0x10321fcab - std::panicking::rust_panic_with_hook::h38dc40cfa47552ba
   7:        0x10321fbc4 - std::panicking::begin_panic_handler::{{closure}}::h727c67dc750b5cee
   8:        0x10321e5e9 - std::sys_common::backtrace::__rust_end_short_backtrace::h6848121e0bfe63be
   9:        0x10321f88d - _rust_begin_unwind
  10:        0x103254dd3 - core::panicking::panic_fmt::h690b01655a033c26
  11:        0x102fdc411 - tokio::runtime::park::CachedParkThread::block_on::h7431fe12de6f24ba
  12:        0x102fee196 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h043f23fcc7374d2f
  13:        0x1030223b1 - tokio::runtime::runtime::Runtime::block_on::h751b70119065cc27
  14:        0x102ff1eea - notion2pandoc::main::h79d6e3b53e8f2ff0
  15:        0x102fe73c6 - std::sys_common::backtrace::__rust_begin_short_backtrace::hbd47f13d939e2e8a
  16:        0x102fe767c - std::rt::lang_start::{{closure}}::hd8ee3c1c0880f9bd
  17:        0x103216350 - std::rt::lang_start_internal::h733b9f59d292f4af
  18:        0x102ff1fcc - _main

Seems like it has a problem with some children block. Unfortunately it doesn't ignore it, nor say which block is the faulty one.
I tried it on two pages and had the same problem.

Unfortunately I'm not that familiar with Rust language yet. Any tips which code I could change so that e.g. it would print me the details about the faulty children block?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant