vladholubiev / serverless-libreoffice

Run LibreOffice in AWS Lambda to create PDFs & convert documents
https://vladholubiev.com/serverless-libreoffice
513 stars 75 forks source link

File not getting converted #14

Closed dennis-mathew closed 5 years ago

dennis-mathew commented 5 years ago

First of all let me say that this is a great project and and I have managed to get this working on an independent machine.

However, in the context of the Lambda function it doesn't seem to work. The output does not get created. The input file size about 100kb and I have allocated the recommended RAM and the timeout values. Following is the error I get: { "StatusCode": 200, "FunctionError": "Handled" } {"errorMessage":"ENOENT: no such file or directory, open '/tmp/${outputFilename}'","errorType":"Error","stackTrace":["Object.fs.openSync (fs.js:646:18)","fs.readFileSync (fs.js:551:33)","exports.handler (/var/task/code.js:19:28)","","process._tickDomainCallback (internal/process/next_tick.js:228:7)"]}

Any pointers or help is greatly appreciated.

dennis-mathew commented 5 years ago

The original file was not getting downloaded. My fault. Thanks again for sharing your code.