Book export not working
  • Hi there,
    I installed booktype from snapshot deb pakage on Ubuntu
    16.04, it works, but exporting a book to epub, pdf or docx is just
    displaying "Exporting, please wait" and no result....

    Celery is working but gives these errors:
    [13/Apr/2018
    22:51:41] DEBUG [booktype:110] {'input': 'input.epub', 'assets':
    {'input.epub':
    u'http://autopublicare.bibliotecaarad.ro/testare-1/_export/'},
    'outputs': {u'docx': {'profile': u'docx', 'output':
    'testare-1_2018-04-13_22-51-41-DOCX.zip', 'config': {'theme': {'id':
    u'academic'}, 'project_id': u'testare-1', 'settings': {u'cover_image':
    u' ', u'styling': u''}}}}}
    [13/Apr/2018 22:51:42] ERROR [booktype:37]
    Got 403 response code when loading URL
    http://autopublicare.bibliotecaarad.ro/_convert/.
    None
    [13/Apr/2018
    22:51:42] ERROR [booktype:119] Could not send the publishing request to
    [http://autopublicare.bibliotecaarad.ro/_convert/]
    ~

    Please help.
    Thanks,
    Marius
  • 5 Comments sorted by
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Marius,

    If you are using Apache to serve http://autopublicare.bibliotecaarad.ro/_convert/ what does the Apache error log say about the request from Booktype?

    We'd like to help you get this working!

    Daniel

  • Hi,

    I just ran into the same kind of issue, and fixed it by changing the following setting (in settings/base.py):

    EXPORT_ALLOWED_HOSTS = ['127.0.0.1', "*"]

    Maybe it's not exactly the same case, but it's probably worth a try.

    Regards,
    Nicolas
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Thanks Nicolas, I have added a tip about
    EXPORT_ALLOWED_HOSTS
    to the manual chapter http://sourcefabric.booktype.pro/booktype-24-for-authors-and-publishers/manual-installation-on-gnulinux/
  • Hi ,
    I installed booktype on Ubuntu 
    18.04, it works, but exporting a book to epub, pdf or docx is just 
    displaying "Exporting, please wait" and no result....

    Celery is working with no error and I have added 
    EXPORT_ALLOWED_HOSTS 
    still  not working.Can anyone have solution for this??
  • 1. page_layout

    Just remove this column

    2. status

    Use 1 for Enabled and 2 for Disabled

    3. visibility

    4 for Catalog & Search, 3 for Search, 2 for Catalog and 1 for Not Visible Individually

    4. enable_googlecheckout
    1 for Yes and 0 for No
    5. tax_class_id

    2 for Taxable Goods (may be different. As I can see - you have Taxable Goods in your file, so 2 is match for you)
    6. _attribute_set
    For dataflow, this column name should not contain underbar. But for just "Import" - column name should start with underbar _

    7. _type

    Same, for dataflow this column name should not contain underbar. Just "Import" - column name should start with underbar _

    8. short_description

    If you want to import new products - then you should supply short descriptions

    9. weight

    Must be a value. Put zeros if product doesn't have any weight

    Here are steps to export a book and you can even check whether there is something wrong with your steps:https://docsbay.net/exporting-a-book

    Post edited by StevenWilson at 2019-07-29 21:17:48