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

[ERROR] console - Caught exception: TypeError: Cannot convert undefined or null to object #17

Open
wayne5ning opened this issue Aug 11, 2015 · 1 comment

Comments

@wayne5ning
Copy link

Test Environment

  • Windows 10
  • Node v0.12.7
  • pomelo installed is 1.1.9
  • chrome 44.0.2403.130 m

Problem

1 checkout repo
2 Successfully start game-server and web-server with default configurations.
3 log on http://127.0.0.1:3001/index.html, enter username and channel, click join.
4 game-server console outputs:

[2015-08-11 10:02:06.260] [ERROR] console - Caught exception: TypeError: Cannot convert undefined or null to object
at copyArray (e:\tmp\chatofpomelo-websocket\game-server\node_modules\pomelo\node_modules\pomelo-protocol\lib\protocol.js:266:11)
at Object.Package.decode (e:\tmp\chatofpomelo-websocket\game-server\node_modules\pomelo\node_modules\pomelo-protocol\lib\protocol.js:138:7)
at WebSocket. (e:\tmp\chatofpomelo-websocket\game-server\node_modules\pomelo\lib\connectors\hybridsocket.js:40:21)
at WebSocket.emit (events.js:110:17)
at Receiver.self._receiver.onbinary (e:\tmp\chatofpomelo-websocket\game-server\node_modules\pomelo\node_modules\ws\lib\WebSocket.js:549:10)
at Receiver.opcodes.2.finish (e:\tmp\chatofpomelo-websocket\game-server\node_modules\pomelo\node_modules\ws\lib\Receiver.js:448:14)
at Receiver.expectHandler (e:\tmp\chatofpomelo-websocket\game-server\node_modules\pomelo\node_modules\ws\lib\Receiver.js:433:33)
at Receiver.add (e:\tmp\chatofpomelo-websocket\game-server\node_modules\pomelo\node_modules\ws\lib\Receiver.js:93:24)
at Socket.firstHandler (e:\tmp\chatofpomelo-websocket\game-server\node_modules\pomelo\node_modules\ws\lib\WebSocket.js:524:22)
at Socket.emit (events.js:107:17)
[2015-08-11 10:02:06.266] [WARN] pomelo - [e:\tmp\chatofpomelo-websocket\game-server\node_modules\pomelo\lib\master\starter.js] child process exit with error, error code: 3221225477, executed command: C:\Program Files (x86)\nodejs\node.exe

Similar issues

http://nodejs.netease.com/topic/5562c342710651e80fcd09f8

@wayne5ning
Copy link
Author

Problem: Local pomelo has a version number of 1.0.4, which is not the latest (version=1.1.9).

With latest pomelo, no error occurred with join.

I've updated the dependency filter in game-server/package.json. Please check if it's reasonable.

wayne5ning added a commit to wayne5ning/chatofpomelo-websocket that referenced this issue Aug 11, 2015
[ERROR] console - Caught exception: TypeError: Cannot convert undefined or null to object NetEase#17
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