Not getting Lighthouse Results
Yamikamisama opened this issue · 4 comments
Yamikamisama commented
Hey there so I am running this code:
const WebPageTest = require('webpagetest');
const wpt = new WebPageTest('www.webpagetest.org', API_KEY);
let opts = {
url: 'https://google.com/',
apiKey,
strategy: 'mobile'
};
exports.helloWorld = function helloWorld(req, res) {
wpt.runTest(opts.url, {pollResults: 5, timeout: 5000, lighthouse: true}, (err, data) => {
res.status(200).send(data);
});
};
And it is returning data, however it does not return Lighthouse Data, which is what I primarily need.
Any clue what Im doing wrong?
pmeenan commented
Can you open this as an issue in the webpagetest project?
What output do you see when you click on the ? for the score? It should provide a log and an indication of why it failed.
You also REALLY shouldn't be posting your API key for anyone else to take and use.
Yamikamisama commented
I opened it there
Yamikamisama commented
Yamikamisama commented
fixed this by sending it here
wpt.runTest(opts.url, {location: 'Dulles_MotoG4', pollResults: 5, timeout: 5000, lighthouse: true}, (err, data) => {