Current time: 10-20-2019, 09:47 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WPTAPIError', code: 403, message: 'Forbidden'
02-25-2019, 06:57 PM
Post: #1
WPTAPIError', code: 403, message: 'Forbidden'
Hi,

I am getting below error. please help
"WPTAPIError', code: 403, message: 'Forbidden'"

my test.js file:
var WebPageTest = require('./node_modules/webpagetest/lib/webpagetest');
var wpt = new WebPageTest('http://www.webpagetest.org/', 'myApiKey');
// var fs=require('fs');
var testSettings = {
proxy: 'my.proxy',
// location: 'Local:IE11',
runs: 1,
firstViewOnly: false,
"pollResults": 5,
"timeout": 60,
"reporter": "xunit",
video: false,
location: 'Dulles:Chrome',
};

const script = wpt.scriptToString([
{ logData: 0 },
{ navigate: "https://google.com" },
{ logData: 1 },
// {clickAndWait: 'id=globalTMLUSearch'},
'waitForComplete'
]);
wpt.runTest(script, testSettings, (err, data) => {
console.log(err || data);
});
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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