You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately I am now unable to run any of the examples. It seems that self.account is always undefined.
I get the following crash scan:
(node:18246) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'reminders' of undefined
at iCloud.getOpenTasks (/home/adrien/git/roam-export/node_modules/apple-icloud/resources/apps/Reminders.js:7:63)
at Object.main.<computed> [as getOpenTasks] (/home/adrien/git/roam-export/node_modules/apple-icloud/resources/helper.js:84:27)
Here is code that triggers it, it's the example from the README:
constmyCloud=newiCloud("icloud-session.json",process.env.ICLOUD_LOGIN,process.env.ICLOUD_PASSWORD);myCloud.on("ready",asyncfunction(){if(myCloud.twoFactorAuthenticationIsRequired){prompt.get(["Security Code"],asyncfunction(err,input){if(err)returnconsole.error(err);constcode=input["Security Code"];myCloud.securityCode=code;});}else{console.log("You are logged in completely!");constcollections=awaitmyCloud.Reminders.getOpenTasks((err,tasks)=>{if(err)console.error(err);elseconsole.log(tasks);});console.log(collections);}});
I get the same issue with the demo examples, for any of the services.
I am not using 2FA, and it looks like I am logged in successfully because myCloud.loggedIn === true.
The text was updated successfully, but these errors were encountered:
Hello, first of all thanks for fixing #19!
Unfortunately I am now unable to run any of the examples. It seems that
self.account
is always undefined.I get the following crash scan:
Here is code that triggers it, it's the example from the README:
I get the same issue with the demo examples, for any of the services.
I am not using 2FA, and it looks like I am logged in successfully because
myCloud.loggedIn === true
.The text was updated successfully, but these errors were encountered: