Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

nested parseHtml broken? #92

Closed
Robdr opened this Issue Apr 11, 2012 · 0 comments

Comments

Projects
None yet
2 participants

Robdr commented Apr 11, 2012

Hi,

Running the Job below results in the data not being parsed and a premature exit of the job ("no job complete"-notifcation). Can you have a look at this?

Thanks!

var nodeio = require('node.io');

exports.job = new nodeio.Job({

    input: [1],

    run: function(input) {
        var self = this;
        self.get('www.github.com',function (err, data, headers) {
            if (err) {
                console.log('error')
                self.retry();
            }
            else {
                console.log("starting parsing html");
                self.parseHtml(data, function (err, $) {
                   console.log("data parsed");
                });
            }
        });

    }
});

@chriso chriso closed this in fb34d9d Apr 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment