-
Notifications
You must be signed in to change notification settings - Fork 162
Description
My main.js looks like this.
const puppeteer = require('puppeteer')
module.exports = (html = '', context, callback) => {
(async () => {
const browser = await puppeteer.launch()
const page = await browser.newPage()
await page.setContent(html)
const buffer = await page.pdf()
callback(null, buffer)
browser.close()
})()
}
I did everything by the book "lib init" "lib create " and when i start "lib up dev"
I get:
2018/11/06 09:54:08.499 [preiksas/puppet-pdf] Uploading... 100.00%
2018/11/06 09:54:08.499 [preiksas/puppet-pdf] Extracting package contents (size 4754)...
2018/11/06 09:54:08.502 [preiksas/puppet-pdf] Registering compiled package...
2018/11/06 09:54:08.502 [preiksas/puppet-pdf] Uploading compiled package...
2018/11/06 09:54:09.545 [preiksas/puppet-pdf] Installing package dependencies...
2018/11/06 09:54:26.946 [preiksas/puppet-pdf] Server Error: There was a problem installing your dependencies
Error: There was an error processing your request, try logging in again.
It seems that these lines missing "Authenticated as " but I can'f figure it out. Maybe there are some other issues ?