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: next is not a function #91

Open
milesconrad opened this issue Jan 14, 2022 · 1 comment
Open

TypeError: next is not a function #91

milesconrad opened this issue Jan 14, 2022 · 1 comment

Comments

@milesconrad
Copy link

milesconrad commented Jan 14, 2022

When I run the authentication sample code from the documentation and then try to clone an existing repository, I get the following error. I've changed nothing about the sample code other than the directory and the port number, so I'd assume this is an issue with the source code.

server.js:13
next();
^

TypeError: next is not a function
at Git.authenticate (server.js:13:9)
at Git.res.statusCode (node_modules/node-git-server/lib/git.js:307:38)
at next (node_modules/node-git-server/lib/git.js:425:32)
at Git.handle (node_modules/node-git-server/lib/git.js:427:9)
at Server. (node_modules/node-git-server/lib/git.js:450:16)
at Server.emit (node:events:390:28)
at parserOnIncoming (node:_http_server:951:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)

Node.js v17.2.0

@milesconrad
Copy link
Author

milesconrad commented Feb 5, 2022

Is there any update on this? I'd love to set up a repository with a password and this is the closest thing I can find to that.

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

1 participant