Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'length' of null #43

Open
pbajno opened this issue Jun 22, 2017 · 1 comment
Open

TypeError: Cannot read property 'length' of null #43

pbajno opened this issue Jun 22, 2017 · 1 comment

Comments

@pbajno
Copy link

pbajno commented Jun 22, 2017

I used the example but something is wrong.
Can't figure what...

/home/git-server# node index

/home/git-server/node_modules/git-server/host.js:265
          if (results.length > 0) {
                     ^
TypeError: Cannot read property 'length' of null
    at /home/git-server/node_modules/git-server/host.js:265:22
    at /home/git-server/node_modules/git-server/node_modules/async/dist/async.js                                                :3327:9
    at /home/git-server/node_modules/git-server/node_modules/async/dist/async.js                                                :421:16
    at iteratorCallback (/home/git-server/node_modules/git-server/node_modules/a                                                sync/dist/async.js:998:13)
    at /home/git-server/node_modules/git-server/node_modules/async/dist/async.js                                                :906:16
    at /home/git-server/node_modules/git-server/node_modules/async/dist/async.js                                                :3319:13
    at /home/git-server/node_modules/git-server/node_modules/async/dist/async.js                                                :4256:13
    at Object.cb [as oncomplete] (fs.js:169:19)

This happens with node v0.1 to v6. v8 gives me this bug: #41

Any ideas?

@raaymax
Copy link

raaymax commented Jul 5, 2017

There is old version of this package on npm.
Workaround:
npm install https://github.com/stackdot/NodeJS-Git-Server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants