microsoftarchive / wunderlist.js

Wunderlist Javascript SDK
https://developer.wunderlist.com/documentation/tools/wunderlist.js
120 stars 29 forks source link

Script Hangs #12

Open darrenparkinson opened 8 years ago

darrenparkinson commented 8 years ago

When running a simple node.js command line script, the script hangs after finishing.

Script just has

var WunderlistSDK = require('wunderlist');
var wunderlistAPI = new WunderlistSDK({
  'accessToken': 'xxxx',
  'clientID': 'xxxx'
});
wunderlistAPI.http.lists.all()
.done(function (lists) {
    console.log(lists);
}
.fail(function (error) {
    console.error('there was a problem' + error);
  });

Clearly I can add a process.exit() to the end of .done, but I assume you're keeping something open? Is this the correct way to exit?

OzieWest commented 7 years ago

The same problem, it hangs after this:

var wunderlistAPI = new WunderlistSDK({
  'accessToken': 'xxxx',
  'clientID': 'xxxx'
});
janschatz commented 6 years ago

Same problem more than a year later. This should not be unsolvable...