chrome-render icon indicating copy to clipboard operation
chrome-render copied to clipboard

Project still alive? Latest updates for nodejs and Chrome?

Open ghost opened this issue 7 years ago • 0 comments

Hi there

Curious to know if this project is still alive?

Is it tested with latest nodejs and Chrome?

I got this error after running the sample code:

const ChromeRender = require('chrome-render');
// ChromeRender.new() return a Promise, you can use async function in this way:
// const chromeRender = await ChromeRender.new();
ChromeRender.new({}).then(async(chromeRender)=>{
    const htmlString = await chromeRender.render({
       url: 'http://qq.com',
    });
    console.log(htmString)
});
ubuntu@ip-10-0-0-196:~/chrome-render$ node server
(node:18206) UnhandledPromiseRejectionWarning: Error: chrome-render timeout
    at Object.<anonymous> (/home/ubuntu/node_modules/chrome-render/index.js:6:28)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
    at Module.load (internal/modules/cjs/loader.js:589:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
    at Function.Module._load (internal/modules/cjs/loader.js:520:3)
    at Module.require (internal/modules/cjs/loader.js:626:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/home/ubuntu/chrome-render/server.js:1:84)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
(node:18206) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:18206) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

thanks!

ghost avatar May 21 '18 05:05 ghost