Giter VIP home page Giter VIP logo

Comments (4)

vladholubiev avatar vladholubiev commented on May 20, 2024

Yes, this looks like a bug in the Libreoffice itself. I've seen problems with larger documents as well

from aws-lambda-libreoffice.

Jun711 avatar Jun711 commented on May 20, 2024

ok, maybe the newer version would work.

btw, when that happens, aws-lambda-libreoffice/lib/convert.js would throw an error as it fails to rm the input file.

Error: Command failed: rm /tmp/RealPropertyCasebook_text.docx rm: cannot remove 
‘/tmp/RealPropertyCasebook_text.docx’: No such file or directory at checkExecSyncError (child_process.js:635:11) 
at execSync (child_process.js:671:15) 
at convertTo (/var/task/node_modules/@shelf/aws-lambda-libreoffice/lib/convert.js:58:31) 
at runMicrotasks (<anonymous>) at processTicksAndRejections 
(internal/process/task_queues.js:97:5) at async LibreOfficeService.convertToPdf (/var/task/services/libreoffice-service.js:173:7) 
at async Runtime.exports.handler (/var/task/app.js:102:15) { status: 1, signal: null, output: ...

from aws-lambda-libreoffice.

arvinAM17 avatar arvinAM17 commented on May 20, 2024

I get this error as well, even with smaller files. I put the file 'document.docx' in the tmp folder right in the function environment, and it gives me
"errorType": "Error", "errorMessage": "Command failed: rm /tmp/tmp/document.docx\nrm: cannot remove ‘/tmp/tmp/document.docx’: No such file or directory\n"
And logs Error: source file could not be loaded as well. Any solutions?

from aws-lambda-libreoffice.

vladholubiev avatar vladholubiev commented on May 20, 2024

We've released a major version of this package that works with the latest LibreOffice 7.3!

Check out the docs for a new package here.

We're not going to support the previous version of a package that worked with a Lambda Layer and an old 6.4 version of LibreOffice.

Feel free to (re)-open a new issue in regards to the recent package version.

from aws-lambda-libreoffice.

Related Issues (20)

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.