catchpoint/WebPageTest.api-nodejs

Not returning expected JSON

Yamikamisama opened this issue ยท 10 comments

wpt.runTest(opts.url, {
    location: 'Dulles_MotoG4',
    pollResults: 5,
    timeout: 5000,
    lighthouse: true
  }, (err, data) => {
  return data;
});

So I have been working on getting data back from the API and everything has been fine until today somehow my requests started returning a completely JSON. It used to return a set of data with key:value pairs with TTFB etc, now it returns the below.

screen shot 2018-01-02 at 3 19 28 pm

Was there a change?

we also started seeing the same issue starting today.

svg7 commented

+1

Still having issues? There was an issue with the public WebPageTest instance for a couple of hours this morning but it should have been fixed ~3 hours ago.

Yes I tried an hour back and the issue was there.
This is the wpt id - 180102_QG_0c5e82ff79ddb6381dbb627530490821

@pmeenan Yup still returning the wrong JSON

screen shot 2018-01-02 at 4 11 36 pm

If you click the url it will take you to the html page with the info, but i want the JSON of data, which is what used to return.

HTML PAGE: http://www.webpagetest.org/results.php?test=180102_VT_2c0fa35c9a3e47412648de9c4684e588

Sorry, should be fixed now - fun php equality where 0 == 'lighthouse' resolves to true.

@pmeenan Okay ill test ๐Ÿ‘

@pmeenan thanks for putting in the fix ๐Ÿ‘ everything came back as expected!

svg7 commented

thanks @pmeenan