iCloud-API icon indicating copy to clipboard operation
iCloud-API copied to clipboard

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

Open oitan opened this issue 5 years ago • 1 comments

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.

oitan avatar Oct 15 '20 13:10 oitan

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!

JulianNeigenfind avatar Nov 08 '20 11:11 JulianNeigenfind