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

Bug: the default port error #292

Closed
luhaoling opened this issue Dec 11, 2023 · 2 comments
Closed

Bug: the default port error #292

luhaoling opened this issue Dec 11, 2023 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@luhaoling
Copy link
Contributor

What happened?

When I make start the chat project, I find the default port of chat-rpc is 10009.

zk get config close zk called
zk get config zk watch ctx done
zk get config recv loop terminated: EOF
zk get config send loop terminated:
start chat server, port: 10009 prometheusPort: 0 , OpenIM version: v3.3.1
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/OpenIMSDK/chat/pkg/common/dbconn.NewMysqlGormDB()
github.com/OpenIMSDK/chat/pkg/common/dbconn/gorm.go:33 +0x868
github.com/OpenIMSDK/chat/pkg/common/dbconn.NewGormDB()
github.com/OpenIMSDK/chat/pkg/common/dbconn/gorm.go:74 +0x1d1
github.com/OpenIMSDK/chat/internal/rpc/chat.Start({0x10e9b50, 0xc00017c900}, 0x3?)
github.com/OpenIMSDK/chat/internal/rpc/chat/chat.go:32 +0x3a
github.com/OpenIMSDK/chat/pkg/common/chatrpcstart.Start(0x2?, {0xc0004c86e0, 0x4}, 0x1010000f3266f?, 0xf8b9a0, {0x0, 0x0, 0x0})
github.com/OpenIMSDK/chat/pkg/common/chatrpcstart/start.go:54 +0x679
main.main()
github.com/OpenIMSDK/chat/cmd/rpc/chat-rpc/main.go:49 +0x1d2

What did you expect to happen?

none

How can we reproduce it (as minimally and precisely as possible)?

none

Anything else we need to know?

No response

version

```console $ {name} version # paste output here ```

Cloud provider

none

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

@luhaoling luhaoling added the kind/bug Categorizes issue or PR as related to a bug. label Dec 11, 2023
@kubbot
Copy link
Contributor

kubbot commented Feb 9, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@kubbot kubbot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 9, 2024
@kubbot
Copy link
Contributor

kubbot commented Feb 16, 2024

This issue was closed because it has been stalled for 7 days with no activity.

@kubbot kubbot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

2 participants