cozy-labs / import-from-google

Import all your google contacts, events and photos into your cozy
Other
6 stars 10 forks source link

TypeError: Cannot read property 'feed' of null #58

Closed clochix closed 7 years ago

clochix commented 8 years ago

Context: No context, the user has deleted the application (but the error log remains, as an eternal testimony of this crash). I guess the user was just trying to import its data from Google and it didn't work, because this issue made the server crash.

Stack trace:

``` /usr/local/cozy/apps/import-from-google/build/server/utils/import_photos.js:217 return getTotal(feed.feed.entry, function() { ^ TypeError: Cannot read property 'feed' of null at /usr/local/cozy/apps/import-from-google/build/server/utils/import_photos.js:217:25 at /usr/local/cozy/apps/import-from-google/node_modules/gdata-js/gdata.js:120:7 at IncomingMessage. (/usr/local/cozy/apps/import-from-google/node_modules/gdata-js/gdata.js:192:13) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:913:12) at nextTickCallbackWith2Args (node.js:442:9) at process._tickCallback (node.js:356:17) ```
clochix commented 7 years ago

Fixed in #59, closing.