GithubHelp home page GithubHelp logo

egeldenhuys / bookstack-exporter Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 21 KB

Export a Bookstack instance as a hierarchy of files

License: MIT License

Dockerfile 4.69% Shell 0.63% Rust 94.68%

bookstack-exporter's People

Contributors

egeldenhuys avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bookstack-exporter's Issues

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.