WebPagetest Forums
Receiving JSON Result URL from API but no data - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: Receiving JSON Result URL from API but no data (/showthread.php?tid=13577)



Receiving JSON Result URL from API but no data - obihill - 03-01-2015 05:22 AM

I have a Private Instance of WebPageTest running on Windows 7 64-bit. Everything seems to work fine with no issues.

However, when I test certain URLs, the JSON Result is not being returned. I get the JSON Result URL from the API Response, but when I go to the URL there is no data.

Here are two URLs I tested:

1. http://www.uvsq.fr
2. http://www.inp-toulouse.fr

However, when I test this out on Webpagetest.org API, I get the JSON Result.

This doesn't happen for all URLs, just a select few and I don't know what is happening.

Here is my API format: http://<my_ip_address>/runtest.php?url=www.uvsq.fr&f=json&video=1&mobile=1&runs=1&pngss=1&location=Local-WPTDriver:Chrome.3G

Is there something I am not doing right, or a setting I need to make to sort this out?

P.S. I also noticed that the test ids are in a different format on my private instance (150228_CK_4) than on webpagetest.org (150228_09_QDV). Any way I can change this to the latter?


RE: Receiving JSON Result URL from API but no data - obihill - 03-01-2015 11:09 AM

Also, a test for http://www.lockheedmartin.com doesn't seem to work anywhere i.e. either on private instance or webpagetest.org.


RE: Receiving JSON Result URL from API but no data - andydavies - 03-01-2015 07:20 PM

If you check the box for preserve original user agent string in the advanced tab (it removes PTST from UA) then Lockheed Martin works - http://www.webpagetest.org/result/150301_4E_C2J/

As for the first issue, in the JSON response there's a userurl link, when the JSON URLs fail I check this as it often contains some more information on what went wrong.

I've got some notes on this somewhere so I'll see if I can find them a bit later


RE: Receiving JSON Result URL from API but no data - obihill - 03-02-2015 05:59 AM

Hi Andy,

Thanks a lot for the response.

Regarding the 'preserve original user agent string' [for lockheedmartin.com], is there a parameter for this when using the API (i.e. that I can set in my existing Webpagetest URL). I'm testing lots of sites so I can't enter this manually.

I'll wait for your notes on the other issue, I'd very much like to know why it's failing.

Cheers.


RE: Receiving JSON Result URL from API but no data - andydavies - 03-02-2015 07:59 PM

Pretty sure it's keepua=1 to use the browser's default User Agent string.