Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HPE_INVALID_CONSTANT error when running webpagetest #10

Open
obihill opened this issue Jan 27, 2014 · 5 comments
Open

HPE_INVALID_CONSTANT error when running webpagetest #10

obihill opened this issue Jan 27, 2014 · 5 comments

Comments

@obihill
Copy link

obihill commented Jan 27, 2014

I run the following command

webpagetest test http://plugin.restive.io --key {my_api_key}

And I get the following result:

{
  "error": {
    "bytesParsed": 0,
    "code": "HPE_INVALID_CONSTANT"
  }
}

It doesn't matter what URL I use, I keep getting this error. Is this from my end or an issue with the software?!

@marcelduran
Copy link
Contributor

Just tried with latest version webpagetest --version and it works fine
for me. Can you confirm your version and also try adding -d to dry-run and
curl the returned url?

On Mon Jan 27 2014 at 11:32:40 AM, Obinwanne Hill [email protected]
wrote:

I run the following command

webpagetest test http://plugin.restive.io --key {my_api_key}

And I get the following result:
{
"error": {
"bytesParsed": 0,
"code": "HPE_INVALID_CONSTANT"
}
}

It doesn't matter what URL I use, I keep getting this error. Is this from
my end or an issue with the software?!

Reply to this email directly or view it on GitHubhttps://github.com//issues/10
.

@obihill
Copy link
Author

obihill commented Jan 28, 2014

I'm using Node version 0.8.19 and I just installed webpagetest via npm yesterday.

I ran it again with the switch you suggested and I got the following result:

{
  "url": "http://www.webpagetest.org/\\runtest.php?url=http%3A%2F%2Fplugin.restive.io&k={my_api_key}&f=json"
}

Not sure what's happening but should there be two backslashes before runtest.php?!

@ghost
Copy link

ghost commented Feb 26, 2014

Hi, I am getting the same problem.

{
"error": {
"bytesParsed": 0,
"code": "HPE_INVALID_CONSTANT"
}
}

webpagetest test http://naukri.com --key {my_api_key}

@jamesryanbell
Copy link

I'm getting this problem too

I'm using version 0.2.2

Command i'm running
webpagetest test http://developers.google.com/speed/pagespeed/insights/

Output
{
"error": {
"bytesParsed": 0,
"code": "HPE_INVALID_CONSTANT"
}
}

webpagetest test http://developers.google.com/speed/pagespeed/insights/ -d
{
"url": "http://www.webpagetest.org/\\runtest.php?url=http%3A%2F%2Fdevelopers.g
oogle.com%2Fspeed%2Fpagespeed%2Finsights%2F&f=json"
}

If I go to this url I get the following message:

{"statusCode":400,"statusText":"An error occurred processing your request. Please reload the testing page and try submitting your test request again. (missing API key)"}

Thanks

@ghost
Copy link

ghost commented Mar 20, 2014

Hi you have to dry-run the test like :-

Command line :-
webpagetest test http://yourdomain.com -d --key {your_api_key}

if you did not have the API key yet Please email to Patrick Meenan

Email Id : [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants