kolbyjack / MMM-Wallpaper

MagicMirror module to display wallpapers from various online sources
https://magicmirror.builders/
MIT License
104 stars 31 forks source link

icloud photo issue #41

Closed sluggg closed 3 years ago

sluggg commented 3 years ago

Module works as expected with default config options, as soon as I change to icloud with correct album ID nothing loads and terminal presents this error. [30.06.2021 15:19.42.066] [ERROR] Whoops! There was an uncaught exception... [30.06.2021 15:19.42.074] [ERROR] TypeError: photo.derivatives is not iterable at Class.processiCloudData (/home/pi/MagicMirror/modules/MMM-Wallpaper/node_helper.js:343:31) at Class.processResponse (/home/pi/MagicMirror/modules/MMM-Wallpaper/node_helper.js:224:21) at Request._callback (/home/pi/MagicMirror/modules/MMM-Wallpaper/node_helper.js:189:16) at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:185:22) at Request.emit (events.js:315:20) at Request. (/home/pi/MagicMirror/node_modules/request/request.js:1154:10) at Request.emit (events.js:315:20) at IncomingMessage. (/home/pi/MagicMirror/node_modules/request/request.js:1076:12) at Object.onceWrapper (events.js:421:28) at IncomingMessage.emit (events.js:327:22) [30.06.2021 15:19.42.081] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?

Thanks for the help 👍

kolbyjack commented 3 years ago

Sorry about that, got a little too aggressive replacing for..in with for..of, try latest master

sluggg commented 3 years ago

Brilliant! Thank you so much thats sorted it