Open vinaynb opened 6 years ago
How do you retrieve your pdf files for Lamdba? S3.get or payload?
If your files are from payload, you may have to take a look about Lambda Limits. Your files may not exist in the /tmp
.
You can check the files first~
if(!fs.existsSync(INPUT)) throw new Error('input does not exit');
if(fs.existsSync(OUTPUT)) fs.unlinkSync(OUTPUT)
// your codes here
Hello I am using hummusjs in AWS Lambda environment (320mb ram) to protect pdf with password. For some of the pdf files i am getting below errors and lambda execution halts
Below is the piece of code that uses hummus
I also checked the input and output arguments that are being passed to
recrypt
function and they have valid values. What's worth noticing is that this error occurs only in few files say out of 500 which indicates that ram availability is not an issue here.I am having a hard time debugging the exact cause of this issue so maybe somehow can show me some pointers as to how should i go ahead fixing this.
Thanks !