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: server.listenerCount is not a function #82

Open
njentit opened this issue Oct 5, 2024 · 1 comment
Open

TypeError: server.listenerCount is not a function #82

njentit opened this issue Oct 5, 2024 · 1 comment

Comments

@njentit
Copy link

njentit commented Oct 5, 2024

node:_http_server:1033
server.listenerCount('upgrade') > 0;
^
TypeError: server.listenerCount is not a function
at parserOnIncoming (node:_http_server:1033:26)
at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
at socketOnData (node:_http_server:823:22)
at TlsSocket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at InternalSocket.onStreamRead [as onread] (node:internal/stream_base_commons:191:23)
at InternalSocket.readData (/home/njentit/Developments/NODEJS/SHPxBOT/node_modules/mitm/lib/internal_socket.js:168:8)
at InternalSocket.emit (node:events:519:28)

@moll
Copy link
Owner

moll commented Oct 5, 2024

Hey,

Do you have some context for this error, too? Perhaps a small reproducible example and the Node.js version you used?

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