[BUG] Registering users through ”/account/register“ will cause chat rpc to fail
OpenIM Server Version
v3.7
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Docker Deployment
Bug Description and Steps to Reproduce
Registering user through ”/account/register“ will cause chat rpc to crash, and the chat service can only be restarted.
These are the logs:
panic: runtime error: index out of range [0] with length 0
goroutine 297 [running]: github.com/openimsdk/chat/internal/rpc/chat.(*chatSvr).RegisterUser(0xc00042c090, {0x131c7a8, 0xc000454300}, 0xc0001b4d00) /openim-chat/internal/rpc/chat/login.go:316 +0x14d3 github.com/openimsdk/chat/pkg/protocol/chat._Chat_RegisterUser_Handler.func1({0x131c7a8, 0xc000454300}, {0x10af7c0?, 0xc0001b4d00}) /openim-chat/pkg/protocol/chat/chat.pb.go:4124 +0x72 github.com/openimsdk/tools/mw.RpcServerInterceptor({0x131c7a8, 0xc00091bc20}, {0x10af7c0, 0xc0001b4d00}, 0xc0009dc998?, 0xc0003cac78) /go/pkg/mod/github.com/openimsdk/[email protected]/mw/rpc_server_interceptor.go:59 +0x276 github.com/openimsdk/chat/pkg/protocol/chat._Chat_RegisterUser_Handler({0x10e4ca0?, 0xc00042c090}, {0x131c7a8, 0xc00091bc20}, 0xc0001b4c80, 0x11a0088) /openim-chat/pkg/protocol/chat/chat.pb.go:4126 +0x135 google.golang.org/grpc.(*Server).processUnaryRPC(0xc000480c00, {0x131c7a8, 0xc00091bb60}, {0x13210f8, 0xc0004ea1a0}, 0xc0003f37a0, 0xc000455fb0, 0x1bc1ec0, 0x0) /go/pkg/mod/google.golang.org/[email protected]/server.go:1386 +0xe23 google.golang.org/grpc.(*Server).handleStream(0xc000480c00, {0x13210f8, 0xc0004ea1a0}, 0xc0003f37a0) /go/pkg/mod/google.golang.org/[email protected]/server.go:1797 +0x100c google.golang.org/grpc.(*Server).serveStreams.func2.1() /go/pkg/mod/google.golang.org/[email protected]/server.go:1027 +0x8b created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 9 /go/pkg/mod/google.golang.org/[email protected]/server.go:1038 +0x135
Screenshots Link
No response