无法正常pushMessage。sessionService为空,https://github.com/NetEase/pomelo/issues/911。 有断时间 了,求帮忙分析一下问题

    [2017-03-19 21:59:23.877] [ERROR] pomelo-rpc - [mqtt-acceptor] process rpc messa
ge error TypeError: Cannot read property 'getByUid' of undefined
    at Remote.pushMessage (E:\dev\zhajinghuaserver\game-server\node_modules\pome
lo\lib\common\remote\frontend\channelRemote.js:38:30)
    at E:\dev\zhajinghuaserver\game-server\node_modules\pomelo\lib\common\servic
e\channelService.js:432:45
    at sendMessage (E:\dev\zhajinghuaserver\game-server\node_modules\pomelo\lib\
common\service\channelService.js:437:7)
    at sendMessageByGroup (E:\dev\zhajinghuaserver\game-server\node_modules\pome
lo\lib\common\service\channelService.js:444:7)
    at Channel.pushMessage (E:\dev\zhajinghuaserver\game-server\node_modules\pom
elo\lib\common\service\channelService.js:331:3)
    at Handler.createRoom (E:\dev\zhajinghuaserver\game-server\app\servers\room\
handler\playHandler.js:24:11)
    at Service.handle (E:\dev\zhajinghuaserver\game-server\node_modules\pomelo\l
ib\common\service\handlerService.js:38:30)
    at handle (E:\dev\zhajinghuaserver\game-server\node_modules\pomelo\lib\serve
r\server.js:370:25)
    at next (E:\dev\zhajinghuaserver\game-server\node_modules\pomelo\lib\common\
service\filterService.js:50:7)
    at Service.beforeFilter (E:\dev\zhajinghuaserver\game-server\node_modules\po
melo\lib\common\service\filterService.js:65:3)

var sessionService = this.app.get('sessionService');

sessionService 为undefined,有人遇到过吗?

环境:win7 pomelo最新版本

标签: bug 反馈 开发求助
isghost 在 3-20 22:21发布 分享到 weibo
1 回复
#1 isghost 3-20 23:00 回复

又自问自答了....channel.add的时候,sid传的是Backend serverId。API说明,要求是frontend serverId

回到顶部