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

console - Caught exception: TypeError: argument should be a Buffer #20

Open
molingyu opened this issue Oct 15, 2016 · 0 comments
Open

Comments

@molingyu
Copy link

molingyu commented Oct 15, 2016

环境

os:Ubuntu 16.04
node version:v4.4.4
pomelo version:1.2.3

操作

1.启动 game server
2.启动 web server
3.输入 name 和 channel
4.点击 join

错误信息

2016-10-15 15:51:04.299] [ERROR] console -  Caught exception: TypeError: argument should be a Buffer
    at TypeError (native)
    at copyArray (/home/shitake/work space/chatofpomelo-websocket/game-server/node_modules/.0.1.3@pomelo-protocol/lib/protocol.js:266:11)
    at Object.Package.decode (/home/shitake/work space/chatofpomelo-websocket/game-server/node_modules/.0.1.3@pomelo-protocol/lib/protocol.js:138:7)
    at WebSocket.<anonymous> (/home/shitake/work space/chatofpomelo-websocket/game-server/node_modules/.1.0.4@pomelo/lib/connectors/hybridsocket.js:40:21)
    at emitTwo (events.js:87:13)
    at WebSocket.emit (events.js:172:7)
    at Receiver.self._receiver.onbinary (/home/shitake/work space/chatofpomelo-websocket/game-server/node_modules/.0.4.25@ws/lib/WebSocket.js:549:10)
    at Receiver.opcodes.2.finish (/home/shitake/work space/chatofpomelo-websocket/game-server/node_modules/.0.4.25@ws/lib/Receiver.js:448:14)
    at Receiver.expectHandler (/home/shitake/work space/chatofpomelo-websocket/game-server/node_modules/.0.4.25@ws/lib/Receiver.js:433:33)
    at Receiver.add (/home/shitake/work space/chatofpomelo-websocket/game-server/node_modules/.0.4.25@ws/lib/Receiver.js:93:24)
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