MauriceConrad / iCloud-API

Node API for Apple's iCloud services
1.17k stars 97 forks source link

It seems that `self.account.webservices` is undefined when `getHostFromWebservice` is called #53

Open oitan opened 4 years ago

oitan commented 4 years ago

I tried to run the demos and got this for getOpenTasks and similar to this for getCollections:

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'reminders' of undefined
    at iCloud.getOpenTasks (......./node_modules/apple-icloud/resources/apps/Reminders.js:7:63)
    at Object.main.<computed> [as getOpenTasks] (......./node_modules/apple-icloud/resources/helper.js:84:27)

I am not sure if it's because Apple's API is updated or not. If you can give me directions, I could make a pr too to contribute.

JulianNeigenfind commented 3 years ago

Similar issue with FindMe.get => getHostFromWebservice(self.account.webservices.findme):

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'findme' of undefined
    at iCloud.__start (.../node_modules/apple-icloud/resources/apps/FindMe.js:32:63)

Keep up the good work!