google-docs-cms
google-docs-cms copied to clipboard
Cannot read property 'title' of undefined
I have a spreadsheet https://docs.google.com/spreadsheets/d/166bKMuNL4y2hmc8RXEghS-9BDyQUVfwA9WFynnfSrt0/edit#gid=0
I think from this that the spreadsheet-id is 166bKMuNL4y2hmc8RXEghS-9BDyQUVfwA9WFynnfSrt0
I'd expect to be able to call google-docs-cms '166bKMuNL4y2hmc8RXEghS-9BDyQUVfwA9WFynnfSrt0' 'mountain-bikes.json'
This is what I get when I try that:
/usr/lib/node_modules/google-docs-cms/node_modules/tabletop/src/tabletop.js:333
this.googleSheetName = data.feed.title.$t;
^
TypeError: Cannot read property 'title' of undefined
at Tabletop.loadSheets (/usr/lib/node_modules/google-docs-cms/node_modules/tabletop/src/tabletop.js:333:40)
at Request._callback (/usr/lib/node_modules/google-docs-cms/node_modules/tabletop/src/tabletop.js:275:18)
at Request.self.callback (/usr/lib/node_modules/google-docs-cms/node_modules/request/request.js:185:22)
at Request.emit (events.js:180:13)
at Request.<anonymous> (/usr/lib/node_modules/google-docs-cms/node_modules/request/request.js:1161:10)
at Request.emit (events.js:180:13)
at IncomingMessage.<anonymous> (/usr/lib/node_modules/google-docs-cms/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:272:13)
at IncomingMessage.emit (events.js:185:15)
at endReadableNT (_stream_readable.js:1106:12)
at process._tickCallback (internal/process/next_tick.js:178:19)