-
Notifications
You must be signed in to change notification settings - Fork 781
Closed
Labels
Description
issues.list({}, function (err, issues) {
is timing out when I use it.
The reason is this... Inside src/github.js
, your iterate() _request
function..
var _requestAllPages = Github._requestAllPages = function _requestAllPages(path, cb) {
var results = [];
(function iterate() {
_request('GET', path, null, function (err, res, xhr) {
is returning a xhr value as undefined for me...
As a very quick/dirty test, just to to see if I could get some results back, i added a if (!hxr) {cb}
and it started to work fine...
if (!(res instanceof Array)) {
res = [res];
}
results.push.apply(results, res);
if (!xhr) {
cb(err, results);
}
You may want to take a look into this :)