You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.
In case of a js error (on the page that phantomjs is trying to render) the converter returns the Exception but with success true and thus the page created.
I discovered the error within a page that uses "requestAnimationFrame" js object, and as far as I know Phantomsjs doesn't deal with it.
I'm working on handling the errors with phantomjs native handler like:
page.onError=function(msg,trace){varmsgStack=['[ERROR]'+msg+" in "+page.url+"[/ERROR]"];if(trace&&trace.length){msgStack.push('[TRACE]');trace.forEach(function(t){msgStack.push(' -> '+t.file+': '+t.line+(t.function ? ' (in function "'+t.function+'")' : ''));});msgStack.push('[/TRACE]');}returnConsoleMsg(msgStack.join('\n'),false);};functionreturnConsoleMsg(msg,result){console.log(JSON.stringify({success: result,response: msg}));// Stop the scriptphantom.exit(0);}
The text was updated successfully, but these errors were encountered:
I'm currently reworking in a new version of converter file to address this issue. Would you mind writing a test-case where our current build fails to parse a JS file, @ilpaijin ?
Thanks.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In case of a js error (on the page that phantomjs is trying to render) the converter returns the Exception but with success true and thus the page created.
I discovered the error within a page that uses "requestAnimationFrame" js object, and as far as I know Phantomsjs doesn't deal with it.
I'm working on handling the errors with phantomjs native handler like:
The text was updated successfully, but these errors were encountered: