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

运行事例报错gate-server-1Caught exception: TypeError: ParserIncomingMessage is not a constructor #45

Closed
disunit opened this issue Oct 26, 2018 · 1 comment

Comments

@disunit
Copy link

disunit commented Oct 26, 2018

[2018-10-26T13:40:41.282] [WARN] pinus - [master-server-1 watchdog.js] all servers startup in 405 ms

[2018-10-26T13:40:41.287] [INFO] logger - [master-server-1 console] Started Robot Master Http server on : http://localhost:8776

[2018-10-26T13:40:41.285] [WARN] logger - [connector-server-1 console] after start all server, use route dictionary :
chat.chatHandler.send
connector.entryHandler.enter
connector.entryHandler.onUserLeave
gate.gateHandler.queryEntry

[2018-10-26 13:41:41] INFO: Nodes: 0, WebClients: 0

[2018-10-26T13:42:21.274] [ERROR] logger - [gate-server-1 console] gate-server-1Caught exception: TypeError: ParserIncomingMessage is not a constructor
at HTTPParser.parserOnHeadersComplete (_http_common.js:81:21)
at socketOnData (_http_server.js:470:20)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at WSProcessor.add (/Users/disunits/Downloads/pinus-master/examples/websocket-chat/game-server/node_modules/pinus/lib/connectors/hybrid/wsprocessor.ts:44:20)
at HybridSwitcher.processHttp (/Users/disunits/Downloads/pinus-master/examples/websocket-chat/game-server/node_modules/pinus/lib/connectors/hybrid/switcher.ts:120:19)
at Socket.socket.once (/Users/disunits/Downloads/pinus-master/examples/websocket-chat/game-server/node_modules/pinus/lib/connectors/hybrid/switcher.ts:99:22)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at TCP.onread (net.js:601:20)Error
at Object.pLogger.(anonymous function) [as error] (/Users/disunits/Downloads/pinus-master/examples/websocket-chat/game-server/node_modules/pinus-logger/lib/logger.ts:59:34)
at process. (/Users/disunits/Downloads/pinus-master/examples/websocket-chat/game-server/preload.ts:33:17)
at emitOne (events.js:116:13)
at process.emit (events.js:211:7)
at process._fatalException (bootstrap_node.js:391:26)

@whtiehack
Copy link
Member

换版本。 8.11.x
nodejs/node#22857

whtiehack added a commit that referenced this issue Dec 6, 2019
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