Current time: 09-20-2020, 03:33 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WPTAPI giving error in private instance
04-21-2020, 04:30 PM
Post: #1
WPTAPI giving error in private instance
Hi,

I have a private instance setup and have valid API key. when i try in browser it is working well. but when i try as module i am getting name: 'WPTAPIError', code: 302, message: 'Found'

Browser URL - Working : Getting Valid 200 response
https://demoprivateinstance.com/runtest....mpleAPIKEY

Module code not working : 'WPTAPIError', code: 302, message: 'Found'

var WebPageTest = require('WebPageTest');
var wpt = new WebPageTest('https://demoprivateinstance.com/', 'sampleAPIKEY');
wpt.runTest('https://www.demoURL.com/', {
connectivity: 'Cable',
location: 'demoLocation',
firstViewOnly: true,
runs: 1,
video: true
}, function processTestRequest(err, result) {
console.log(err || result)
});

Please advise
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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