Error in evaluate
and the process hangs if collect
fails in jsdom
#612
Labels
evaluate
and the process hangs if collect
fails in jsdom
#612
This failed scan is due to an known issue reported in request/request#1777.
But the
scan::end
emitted at the catch block https://github.com/sonarwhal/sonar/blob/c62ec505c5ea623f460c1d7b89e66aa634246f03/src/lib/connectors/jsdom/jsdom.ts#L382-L386 triggeredevaluate
to run inno-vulnerable-javascript-libraries
. And because the value of_finalHref
is never assigned,_finalHref
is undefined in https://github.com/sonarwhal/sonar/blob/c62ec505c5ea623f460c1d7b89e66aa634246f03/src/lib/connectors/jsdom/jsdom.ts#L516 A destructuring error is thrown as below and the process hangs for a while before exit.Please tell us about your:
Environment
sonar
version: 0.13.0Node.js
version: 8.8.0npm
version: 5.3.0sonar
configurationsonar's configuration
URL for which
sonar
failedOutput
Please include the raw output generated by
sonar
, or if possible,the raw output from running
sonar
in debug mode:sonar --debug <URL>
.sonar's raw output
The text was updated successfully, but these errors were encountered: