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

第三章的代码单节点登录错误 #23

Open
cxiaozhi opened this issue Oct 13, 2023 · 3 comments
Open

第三章的代码单节点登录错误 #23

cxiaozhi opened this issue Oct 13, 2023 · 3 comments

Comments

@cxiaozhi
Copy link

使用作者提供的代码,无法正常登录
提示: s.resp.client fail nil

@luopeiyu
Copy link
Owner

有更详细的报错信息吗

@cxiaozhi
Copy link
Author

有更详细的报错信息吗

image
报这个错

@luopeiyu
Copy link
Owner

这句报错看上去是对应login/init.lua中的第10行,原因是skynet.error("s.resp.client fail", cmd)中的cmd为空。

而消息是从gateway传递过来的,其中的cmd从打印的日志看是“login”,这里出现的问题是为什么传递到login就变成nil。

估计要从这些地方排查一下,目前也还不确定skynet新版本中哪里会不会导致不同。

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