luin/node-readability — pull request #5 by OliverJAsh (2013-03-17 18:25:09+00:00)
Title: Trouble debugging single URL

I'm having trouble debugging this URL: `http://www.theverge.com/2013/2/28/4038892/what-chrome-extensions-do-you-use-and-other-tweaks-tips-and-tricks`

If I adjust the `simple.js` example to use this URL, like so:

``` js
var readability = require('../src/readability')
, fs = require('fs')

// uncoment the following line to print the debug info to console.
// readability.debug(true);

readability.read('http://www.theverge.com/2013/3/17/4113714/60-minutes-jack-dorsey-profile-on-cbs-tonight',
function(err, read) {
var dom = read.getDocument();
var html = '

'+dom.title+'

'+read.getTitle()+'

'+read.getContent()+'

';
console.log(html);
});
```

I get the following error:
```
/Users/Oliver/Development/Temp/node-readability/examples/simple.js:10
var dom = read.getDocument();
^
TypeError: Cannot call method 'getDocument' of undefined
at /Users/Oliver/Development/Temp/node-readability/examples/simple.js:10:18
at jsdom.env.done (/Users/Oliver/Development/Temp/node-readability/src/readability.js:100:11)
at exports.env.exports.jsdom.env.scriptComplete (/Users/Oliver/Development/Temp/node-readability/node_modules/jsdom/lib/jsdom.js:205:39)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
```

If I use any other URL from this website, it seems to work fine however.