catchpoint/WebPageTest.api-nodejs

webpagetest private instance not worked

sachinbanugariya opened this issue · 2 comments

hello,
i installed webpagetest on centos 7 using npm install.
also installed webpagetest webbased private instance.

i want to test webpagetest using command line on centos 7.
with private instance webpagetest.
server is located at china.

tested below command and gives issue:
webpagetest test https://twitter.com/marcelduran --key A.cb529269f4e9b03XXXXXXXX --location ec2-ap-southeast-2 -s myhostname

gives below output:
{
"statusCode": 400,
"statusText": "Invalid Location, please try submitting your test request again."
}

i also checked and tried some locations from
webpagetest locations.
but still same output for all.

please let me know whatv is issue here and how can i get output.
thanks.

@sachinbanugariya Even I have also faced the same issue...
Check whether your requested location is present or not : urdomain/getLocations.php
In my private instance, I can't find this location "ec2-ap-southeast-2"

ok, i also want to know that:
webpagetest test https://twitter.com/marcelduran --key A.cb529269f4e9b03XXXXXXXX --location ec2-ap-southeast-2 -s myhostname

if this command work then results seems like below:
http://myhostname.com/result.php ?

or seems like:
http://webpagetest.com/result.php.

and the other thing is that is if i use below command:
webpagetest test https://facebook.com --key A.cb529954098eed --location ec2-us-east-1:Chrome

then it gives results like:
{
"statusCode": 200,
"statusText": "Ok",
"data": {
"testId": "170831_6T_1e69fcb2b3613772814647a3b20a390b",
"ownerKey": "65ba099bab3a229306fd42727846816df6c9fb08",
"jsonUrl": "https://www.webpagetest.org/jsonResult.php?test=170831_6T_1e69fcb2b3613772814647a3b20a390b",
"xmlUrl": "https://www.webpagetest.org/xmlResult/170831_6T_1e69fcb2b3613772814647a3b20a390b/",
"userUrl": "https://www.webpagetest.org/result/170831_6T_1e69fcb2b3613772814647a3b20a390b/",
"summaryCSV": "https://www.webpagetest.org/result/170831_6T_1e69fcb2b3613772814647a3b20a390b/page_data.csv",
"detailCSV": "https://www.webpagetest.org/result/170831_6T_1e69fcb2b3613772814647a3b20a390b/requests.csv"
}
}

so the thing is command is not work if i use --server https://hostname

that is webpagetest test https://facebook.com --key A.cb1b1954098eed --location ec2-us-east-1:Chrome --server https://hostname

please suggest how can i go ahead.
thanks