Connecting to DB.
Getting page: 1
Getting page: 2
Getting page: 3
Getting page: 4
Getting page: 5
Getting page: 6
Getting page: 7
Getting page: 8
Getting page: 9
Getting page: 10
Getting page: 11
Getting page: 12
Getting page: 13
Getting page: 14
Getting page: 15
Done
TypeError: Cannot read property 'data' of undefined
at null. (/Users/tema/WebstormProjects/node1/callbacks.js:39:67)
at exports.each (/Users/tema/WebstormProjects/node1/node_modules/cheerio/lib/api/traversing.js:237:24)
at Request._callback (/Users/tema/WebstormProjects/node1/callbacks.js:33:19)
at Request.self.callback (/Users/tema/WebstormProjects/node1/node_modules/request/request.js:121:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request. (/Users/tema/WebstormProjects/node1/node_modules/request/request.js:978:14)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage. (/Users/tema/WebstormProjects/node1/node_modules/request/request.js:929:12)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:920:16
На 10 работает. На 13 падает.