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

Failed to get filename from content-disposition for exporting page ID #1

Open
intrepidsilence opened this issue Jan 11, 2024 · 0 comments

Comments

@intrepidsilence
Copy link

I compiled this and ran it but got the following. Data has been sanitized.

RUST_BACKTRACE=full bookstack-exporter -c ./settings.toml
clone_bookstack
[src/lib.rs:279] export_type = HTML
[src/lib.rs:279] output_dir = "/Users/user/Documents/path/WIKI2"
get_shelves
clone_shelve
[src/lib.rs:259] parent_path = "/Users/user/Documents/path/WIKI2/1-retail-customers"
[src/lib.rs:259] shelve_id = 12
get_shelve
[src/lib.rs:131] id = 12
clone_book
[src/lib.rs:231] parent_path = "//Users/user/Documents/path/WIKI2/1-retail-customers/co-operations-centre-(zoc)"
[src/lib.rs:231] book_id = 45
get_book
[src/lib.rs:142] id = 45
clone_chapter
[src/lib.rs:213] parent_path = "/Users/user/Documents/path/WIKI2/1-retail-customers/co-operations-centre-(zoc)/co-operations-centre-(zoc)-management-platform"
[src/lib.rs:213] chapter_id = 143
get_chapter
[src/lib.rs:153] id = 143
clone_page
[src/lib.rs:170] parent_path = "/Users/user/Documents/path/WIKI2/1-retail-customers/co-operations-centre-(zoc)/co-operations-centre-(zoc)-management-platform"
[src/lib.rs:170] page_id = 827
[src/lib.rs:183] &res = Response {
    url: Url {
        scheme: "https",
        cannot_be_a_base: false,
        username: "",
        password: None,
        host: Some(
            Domain(
                "wiki.corp.site.com",
            ),
        ),
        port: None,
        path: "/login",
        query: None,
        fragment: None,
    },
    status: 200,
    headers: {
        "date": "Thu, 11 Jan 2024 14:55:39 GMT",
        "server": "Apache/2.4.52 (Ubuntu)",
        "vary": "Authorization,Accept-Encoding",
        "cache-control": "no-cache, private",
        "content-security-policy": "frame-ancestors 'self'; frame-src 'self' https://*.draw.io https://*.youtube.com https://*.youtube-nocookie.com https://*.vimeo.com https://embed.diagrams.net; script-src http: https: 'nonce-D3zsePIKmOWrTXc4b0uYMhKZ' 'strict-dynamic'; object-src 'self'; base-uri 'self'",
        "set-cookie": "XSRF-TOKEN=gibberish(*&(*&(*&(*&(*&*&%#&^$%#(*$)@#$; expires=Fri, 19-Jan-2024 22:55:40 GMT; Max-Age=720000; path=/; samesite=lax",
        "set-cookie": "bookstack_session=moregibberish**&^#$*&#^$&**(; expires=Fri, 19-Jan-2024 22:55:40 GMT; Max-Age=720000; path=/; httponly; samesite=lax",
        "transfer-encoding": "chunked",
        "content-type": "text/html; charset=UTF-8",
    },
}
thread 'main' panicked at src/lib.rs:193:13:
Failed to get filename from content-disposition for exporting page ID 827, as html
stack backtrace:
   0:        0x100428af0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3c8b3da4c3ca3a14
   1:        0x100437094 - core::fmt::write::hfb70cbdb2260ac51
   2:        0x10041f900 - std::io::Write::write_fmt::hc13c5ba5d088bd95
   3:        0x10042892c - std::sys_common::backtrace::print::hb0798cc2b68a4b36
   4:        0x1004171bc - std::panicking::default_hook::{{closure}}::hb6b09a0c32b10ee5
   5:        0x100416f14 - std::panicking::default_hook::hc5c3799b46fe276a
   6:        0x100417680 - std::panicking::rust_panic_with_hook::h491fddbcf07c6736
   7:        0x100428fb8 - std::panicking::begin_panic_handler::{{closure}}::ha2bc72305b00ceb6
   8:        0x100428cf8 - std::sys_common::backtrace::__rust_end_short_backtrace::hb9c89d964676cd3d
   9:        0x100417418 - _rust_begin_unwind
  10:        0x1004501a8 - core::panicking::panic_fmt::h5de4b603c189570c
  11:        0x100273378 - bookstack_exporter::BookstackClient::clone_page::h08fd5e09d2e50830
  12:        0x1002735e0 - bookstack_exporter::BookstackClient::clone_chapter::he53ef321f577a1c8
  13:        0x1002738bc - bookstack_exporter::BookstackClient::clone_book::hffed3149fbc52dca
  14:        0x100273df0 - bookstack_exporter::BookstackClient::clone_shelve::h5bd36ab1b84b07af
  15:        0x100274274 - bookstack_exporter::BookstackClient::clone_bookstack::hdbcca1bf14d09938
  16:        0x10022aee8 - bookstack_exporter::main::h516b4566c65402f9
  17:        0x100234a94 - std::sys_common::backtrace::__rust_begin_short_backtrace::hf62cb410342a5722
  18:        0x10022cef8 - std::rt::lang_start::{{closure}}::ha9d0b219cd098c9b
  19:        0x100417308 - std::panicking::try::h661978b490c2c632
  20:        0x10040fcf0 - std::rt::lang_start_internal::h83d8f808a741aebf
  21:        0x10022b044 - _main
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