I'm trying to get your lamda solution working and I have run into the following error.
REPORT RequestId: 21cd60a4-8986-11e7-93ce-9ff610186b10 Duration: 2159.54 ms Billed Duration: 2200 ms Memory Size: 128 MB Max Memory Used: 40 MB
11:12:33
START RequestId: 21cd60a4-8986-11e7-93ce-9ff610186b10 Version: $LATEST
START RequestId: 21cd60a4-8986-11e7-93ce-9ff610186b10 Version: $LATEST
11:12:33
2017-08-25T11:12:33.067Z 21cd60a4-8986-11e7-93ce-9ff610186b10 Invocation state = { "region": "eu-west-1", "bucket": "BUCKETNAME", "key": "htmltopdf/template.html", "input_filename": "htmltopdf/template.html", "output_filename": "htmltopdf/template.pdf" }
11:12:33
2017-08-25T11:12:33.067Z 21cd60a4-8986-11e7-93ce-9ff610186b10 Generating PDF for http://BUCKETNAME.s3-website-eu-west-1.amazonaws.com/htmltopdf/template.html
11:12:34
2017-08-25T11:12:34.504Z 21cd60a4-8986-11e7-93ce-9ff610186b10 wkhtmltopdf failed!
11:12:34
2017-08-25T11:12:34.505Z 21cd60a4-8986-11e7-93ce-9ff610186b10 {"errorMessage":"Exit with code 1 due to network error: ContentNotFoundError\n\nwkhtmltopdf exited with code 1","errorType":"Error","stackTrace":["","wkhtmltopdf exited with code 1","handleError (/var/task/node_modules/wkhtmltopdf/index.js:142:16)","ChildProcess.<anonymous> (/var/task/node_modules/wkhtmltopdf/index.js:114:7)","emitTwo (
2017-08-25T11:12:34.505Z 21cd60a4-8986-11e7-93ce-9ff610186b10
{
"errorMessage": "Exit with code 1 due to network error: ContentNotFoundError\n\nwkhtmltopdf exited with code 1",
"errorType": "Error",
"stackTrace": [
"",
"wkhtmltopdf exited with code 1",
"handleError (/var/task/node_modules/wkhtmltopdf/index.js:142:16)",
"ChildProcess.<anonymous> (/var/task/node_modules/wkhtmltopdf/index.js:114:7)",
"emitTwo (events.js:87:13)",
"ChildProcess.emit (events.js:172:7)",
"Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)"
]
}```
I'm assuming that I maybe forgot a role or something but looking at it it looks correct.
Any ideas?
Thanks
Hi,
I'm trying to get your lamda solution working and I have run into the following error.