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

[BUG] carbone:converter process Office of factory 0 died 1 #7

Open
karimkawambwa opened this issue Jun 10, 2022 · 0 comments
Open

[BUG] carbone:converter process Office of factory 0 died 1 #7

karimkawambwa opened this issue Jun 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@karimkawambwa
Copy link

Describe the bug

Trying to run with convertTo: "pdf" option.
The process fails with the following

bcgov-carbone_1   | 2022-06-10T14:51:12.973Z carbone:converter process Office of factory 0 died 1
bcgov-carbone_1   | 2022-06-10T14:51:12.979Z carbone:converter process Python of factory 0 died null
bcgov-carbone_1   | 2022-06-10T14:51:12.979Z carbone:converter factory 0 is completely off

To Reproduce

docker-compose service

    image: bcgovimages/alpine-node-libreoffice
    environment:
      - LOCAL_STACK=1
      - DEBUG=*
    working_dir: /src
    volumes:
      - ./:/src
      - ./.carbone/tmp:/tmp
    command: [ "yarn", "test" ]

carbone.test.js

const fs = require("fs")
const { render } = require("./carbone")

describe("carbone", () => {
    it("should parse test.docx to test.docx", async () => {
        const result = await render(__dirname + "/test.docx", {
            options: {
                reportName: "test.docx"
            }
        }, false);

        fs.writeFileSync(__dirname + "/.carbone/test.docx", result);
    }, 60000)

    it("should convert test.docx to test.pdf", async () => {
        const result = await render(__dirname + "/test.docx", {
            options: {
                reportName: "test.pdf",
                convertTo: "pdf"
            }
        }, false);

        fs.writeFileSync(__dirname + "/.carbone/test.pdf", result);
    }, 60000)
})

Expected behavior

The DOCX document to be converted to PDF

Desktop (please complete the following information):

  • Mac

Additional context

bcgov-carbone_1   | 2022-06-10T14:51:12.973Z carbone:converter process Office of factory 0 died 1
bcgov-carbone_1   | 2022-06-10T14:51:12.979Z carbone:converter process Python of factory 0 died null
bcgov-carbone_1   | 2022-06-10T14:51:12.979Z carbone:converter factory 0 is completely off
@karimkawambwa karimkawambwa added the bug Something isn't working label Jun 10, 2022
@karimkawambwa karimkawambwa changed the title [BUG] [BUG] carbone:converter process Office of factory 0 died 1 Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant