Skip to content
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
Open

Script Hangs #12

darrenparkinson opened this issue May 31, 2016 · 2 comments

Comments

@darrenparkinson
Copy link

@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?

@OzieWest
Copy link

@OzieWest OzieWest commented Jan 22, 2017

The same problem, it hangs after this:

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

@janschatz 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.