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

Getting "Error: Please verify input parameters..." #11

Open
dallanmc opened this issue Aug 29, 2022 · 4 comments
Open

Getting "Error: Please verify input parameters..." #11

dallanmc opened this issue Aug 29, 2022 · 4 comments

Comments

@dallanmc
Copy link
Contributor

Using the handler.js code from the readme, I get the following error in the cloudwatch logs when I run it

Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///tmp/hello.pdf> failed: 0xc10(Error Area:Io Class:Write Code:16) at /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:3207 at /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:1783)

I have set the environment variable HOME to /tmp as advised in the readme

@vladholubiev
Copy link
Member

Hm, not sure what is this. Never seen such error. What command do you run with the LibreOffice? Any specific unusual CLI argument?

@dallanmc
Copy link
Contributor Author

I'm using the handler js from the readme so it's

const {execSync} = require('child_process');
const {writeFileSync} = require('fs');

module.exports.handler = () => {
  writeFileSync('/tmp/hello.txt', Buffer.from('Hello World!'));

  execSync(`
  cd /tmp
  libreoffice7.4 --headless --invisible --nodefault --view --nolockcheck --nologo --norestore --convert-to pdf --outdir /tmp ./hello.txt
  `);
};

@doronneumann
Copy link

Same here...

@vladyslav-semenets
Copy link

@dallanmc any luck here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants