Current time: 12-12-2019, 07:57 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Receiving JSON Result URL from API but no data
03-01-2015, 05:22 AM
Post: #1
Receiving JSON Result URL from API but no data
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?
Find all posts by this user
Quote this message in a reply
03-01-2015, 11:09 AM
Post: #2
RE: Receiving JSON Result URL from API but no data
Also, a test for http://www.lockheedmartin.com doesn't seem to work anywhere i.e. either on private instance or webpagetest.org.
Find all posts by this user
Quote this message in a reply
03-01-2015, 07:20 PM (This post was last modified: 03-02-2015 05:42 AM by andydavies.)
Post: #3
RE: Receiving JSON Result URL from API but no data
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

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
03-02-2015, 05:59 AM
Post: #4
RE: Receiving JSON Result URL from API but no data
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.
Find all posts by this user
Quote this message in a reply
03-02-2015, 07:59 PM
Post: #5
RE: Receiving JSON Result URL from API but no data
Pretty sure it's keepua=1 to use the browser's default User Agent string.

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)