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

Script Hangs #12

Open
darrenparkinson opened this Issue May 31, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@darrenparkinson

darrenparkinson commented May 31, 2016

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?

@soramusoka

This comment has been minimized.

Show comment
Hide comment
@soramusoka

soramusoka Jan 22, 2017

The same problem, it hangs after this:

var wunderlistAPI = new WunderlistSDK({
  'accessToken': 'xxxx',
  'clientID': 'xxxx'
});

soramusoka commented Jan 22, 2017

The same problem, it hangs after this:

var wunderlistAPI = new WunderlistSDK({
  'accessToken': 'xxxx',
  'clientID': 'xxxx'
});
@janschatz

This comment has been minimized.

Show comment
Hide comment
@janschatz

janschatz Jul 15, 2018

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

janschatz commented Jul 15, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment