diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 87f91e963..bae6c69be 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -61,6 +61,10 @@ const driver = { browser.visit(url, error => { wappalyzer.driver.document = browser.document; + if ( !browser.resources['0'].response ) { + return reject('No response from server'); + } + const headers = {}; browser.resources['0'].response.headers._headers.forEach(header => {