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

Project still alive? Latest updates for nodejs and Chrome? #19

Open
ghost opened this issue May 21, 2018 · 0 comments
Open

Project still alive? Latest updates for nodejs and Chrome? #19

ghost opened this issue May 21, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented May 21, 2018

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!

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

No branches or pull requests

0 participants