Why is this console.log code creating these errors?

396
March 17, 2017, at 04:03 AM

The following console.log code causes me all kinds of errors:

wpt.runTest('https://twitter.com/marcelduran', {location: 'SanJose_IE9'}, (err, data) => {
  console.log(err || data);
  });
$ node other.js 
 { Error
at Object.<anonymous> (/Users/steve/node_modules/webpagetest/lib/helper.js:213:25)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/steve/node_modules/webpagetest/lib/webpagetest.js:14:15)
at Module._compile (module.js:571:32) name: 'WPTAPIError', code: 404, message: 'Not Found' }

If run as wpt.runTest('https://twitter.com/marcelduran', {location: 'SanJose_IE9'}); it runs fine, but I don't get any output.

Thoughts? Newb to node/js, obv. Thanks.

Rent Charter Buses Company
READ ALSO
Google App Engine health checks spamming app

Google App Engine health checks spamming app

I've deployed a nodejs app running on the Google App Engine Flex runtime using the following appyaml configuration:

293
How do I call a function in an Angularjs file using Nodejs?

How do I call a function in an Angularjs file using Nodejs?

I am developing a CRM application using Java, Nodejs, AngularjsI'm using Nodejs with a Facebook Chat API and in order to retrieve a Facebook users online status legally, I have to use a different Facebook API that only works with AngularJS

358
Moment.js plugins in Ionic2/Cordova typescript project

Moment.js plugins in Ionic2/Cordova typescript project

In my Ionic 2 project written in Typescript I use momentjs library

534
Pass a Parameter to UI-Router From Constructor

Pass a Parameter to UI-Router From Constructor

It seems everywhere I search it is mostly about people passing parameters TO the Constructor from the UI-RouterBut not really any information for passing parameters TO the UI-Router from the Constructor

338