FB55/readabilitySAX — Issue #5: Cannot read property 'totalScore' of null
Author: imanel
Created: 2011-12-06 17:25:51+00:00
State: open

On page:

http://www.nytimes.com/adx/bin/adx_click.html?type=goto&opzn&page=homepage.nytimes.com/index.html&pos=HPmodule-RE2&sn2=d1cdc681/5274a2cb&sn1=5e1b0829/1821bb3d&camp=hpmodRE-TFC-01-1494369-cla&ad=8.29.11-TFC-TheView-173x98-HPM&goto=http%3A%2F%2Flivingtheview%2Ecom%2F%3Futm%5Fsource%3DNY%252BTimes%26utm%5Fmedium%3Dhome%252Bpage%252Bmodule%26utm%5Fcampaign%3Dview%2Dlivingrm3

I get following error:

2011-12-06T17:20:52+00:00 app[web.1]: { protocol: 'http:',
2011-12-06T17:20:52+00:00 app[web.1]: slashes: true,
2011-12-06T17:20:52+00:00 app[web.1]: host: 'www.nytimes.com',
2011-12-06T17:20:52+00:00 app[web.1]: hostname: 'www.nytimes.com',
2011-12-06T17:20:52+00:00 app[web.1]: href: 'http://www.nytimes.com/adx/bin/adx_click.html?type=goto&opzn&page=homepage.nytimes.com/index.html&pos=HPmodule-RE2&sn2=d1cdc681/5274a2cb&sn1=5e1b0829/1821bb3d&camp=hpmodRE-TFC-01-1494369-cla&ad=8.29.11-TFC-TheView-173x98-HPM&goto=http%3A%2F%2Flivingtheview%2Ecom%2F%3Futm%5Fsource%3DNY%252BTimes%26utm%5Fmedium%3Dhome%252Bpage%252Bmodule%26utm%5Fcampaign%3Dview%2Dlivingrm3',
2011-12-06T17:20:52+00:00 app[web.1]: search: '?type=goto&opzn&page=homepage.nytimes.com/index.html&pos=HPmodule-RE2&sn2=d1cdc681/5274a2cb&sn1=5e1b0829/1821bb3d&camp=hpmodRE-TFC-01-1494369-cla&ad=8.29.11-TFC-TheView-173x98-HPM&goto=http%3A%2F%2Flivingtheview%2Ecom%2F%3Futm%5Fsource%3DNY%252BTimes%26utm%5Fmedium%3Dhome%252Bpage%252Bmodule%26utm%5Fcampaign%3Dview%2Dlivingrm3',
2011-12-06T17:20:52+00:00 app[web.1]: query: 'type=goto&opzn&page=homepage.nytimes.com/index.html&pos=HPmodule-RE2&sn2=d1cdc681/5274a2cb&sn1=5e1b0829/1821bb3d&camp=hpmodRE-TFC-01-1494369-cla&ad=8.29.11-TFC-TheView-173x98-HPM&goto=http%3A%2F%2Flivingtheview%2Ecom%2F%3Futm%5Fsource%3DNY%252BTimes%26utm%5Fmedium%3Dhome%252Bpage%252Bmodule%26utm%5Fcampaign%3Dview%2Dlivingrm3',
2011-12-06T17:20:52+00:00 app[web.1]: pathname: '/adx/bin/adx_click.html' }
2011-12-06T17:20:52+00:00 app[web.1]:
2011-12-06T17:20:52+00:00 app[web.1]: /app/node_modules/readabilitySAX/readabilitySAX.js:611
2011-12-06T17:20:52+00:00 app[web.1]:	score: this._topCandidate.totalScore
2011-12-06T17:20:52+00:00 app[web.1]: ^
2011-12-06T17:20:52+00:00 app[web.1]: TypeError: Cannot read property 'totalScore' of null
2011-12-06T17:20:52+00:00 app[web.1]: at [object Object].getArticle (/app/node_modules/readabilitySAX/readabilitySAX.js:611:28)
2011-12-06T17:20:52+00:00 app[web.1]: at Request. (/app/node_modules/readabilitySAX/node/index.js:49:26)
2011-12-06T17:20:52+00:00 app[web.1]: at Request.emit (events.js:64:17)
2011-12-06T17:20:52+00:00 app[web.1]: at IncomingMessage. (/app/node_modules/readabilitySAX/node_modules/request/main.js:423:16)
2011-12-06T17:20:52+00:00 app[web.1]: at IncomingMessage.emit (events.js:81:20)
2011-12-06T17:20:52+00:00 app[web.1]: at HTTPParser.onMessageComplete (http.js:133:23)
2011-12-06T17:20:52+00:00 app[web.1]: at Socket.ondata (http.js:1213:22)
2011-12-06T17:20:52+00:00 app[web.1]: at Socket._onReadable (net.js:681:27)
2011-12-06T17:20:52+00:00 app[web.1]: at IOWatcher.onReadable [as callback] (net.js:177:10)

Happens every time I try