pomelo icon indicating copy to clipboard operation
pomelo copied to clipboard

HTTPParser error

Open flyish opened this issue 6 years ago • 5 comments

test game server occur http parser error.

Caught exception: TypeError: ParserIncomingMessage is not a constructor at HTTPParser.parserOnHeadersComplete (_http_common.js:81:21) at socketOnData (_http_server.js:472:20) at Socket.emit (events.js:180:13) at Processor.add (F:\work\pomelo\HelloWorld\game-server\node_modules\pomelo\lib\connectors\hybrid\wsprocessor.js:41:12) at processHttp (F:\work\pomelo\HelloWorld\game-server\node_modules\pomelo\lib\connectors\hybrid\switcher.js:98:13) at Socket. (F:\work\pomelo\HelloWorld\game-server\node_modules\pomelo\lib\connectors\hybrid\switcher.js:65:7)

flyish avatar Mar 31 '18 07:03 flyish

@flyish 怎么解决的

chenzeZzz avatar Apr 17 '18 06:04 chenzeZzz

@chenzeZzz 没有解决掉,没用它了

flyish avatar Apr 17 '18 06:04 flyish

@flyish 文档很少,也不维护了,有推荐的框架吗

chenzeZzz avatar Apr 17 '18 06:04 chenzeZzz

@flyish 解决了,是node版本的问题,pomelo对node版本有限制,据说最高6.11

chenzeZzz avatar Apr 17 '18 07:04 chenzeZzz

@chenzeZzz ^_^ 厉害

flyish avatar Apr 17 '18 07:04 flyish