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

TypeError: cb is not a function #5

Open
saqibomer opened this issue Oct 17, 2017 · 0 comments
Open

TypeError: cb is not a function #5

saqibomer opened this issue Oct 17, 2017 · 0 comments

Comments

@saqibomer
Copy link

I am trying to get events and it is raising exception.
/node_modules/icloud/index.js:144 cb(null, body)
TypeError: cb is not a function
This is how I am calling events function.
`instance.login(username, password, function(err) {
if (err) return console.log('login failed');

instance.events("2015-07-16","2016-07-16","America/New_York", function( err, results){
    
    if (err) {
        console.log('failed to fetch contacts');
        res.send(err);
    } else {
        console.log(results.contacts);
        res.send(results.result);
    }
    
});

});`

What I am doing wrong? Running on localhost, macos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant