node-gitteh icon indicating copy to clipboard operation
node-gitteh copied to clipboard

Cannot read property 'bytes' of undefined

Open larzconwell opened this issue 10 years ago • 2 comments

So I'm following the clone example, and every time I get the same error about a property being undefined.

Code

var gitteh = require('gitteh');

var clone = gitteh.clone('http://github.com/libgit2/node-gitteh.git', '/tmp/test');

clone.on('complete', function () {
  // do some stuff
});

clone.on('error', function (err) {
  // do some stuff
});

Stack trace

TypeError: Cannot read property 'bytes' of undefined
    at update [as _onTimeout] (/home/larz/Desktop/test/node_modules/gitteh/lib/gitteh.js:499:51)
    at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)

It looks like it's being caused here

larzconwell avatar Jul 09 '13 17:07 larzconwell

@larzconwell What version of gitteh are you using? I can't replicate this with the latest version (0.17.2)

samcday avatar Jul 14 '13 02:07 samcday

I am using 0.17.2 as well, I should include that I'm using Linux.

larzconwell avatar Jul 14 '13 21:07 larzconwell