gabrielcsapo / gabrielcsapo/node-git-server

TypeError: next is not a function

Aperta
#91 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
262
Fork
81
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When I run the authentication sample code from the [documentation](https://gabrielcsapo.github.io/node-git-server/code/index.html) 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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.