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

Panic interface conversion: interface {} is *model.User, not map[string]interface {} #1617

Closed
DummyThatMatters opened this issue Oct 21, 2021 · 1 comment

Comments

@DummyThatMatters
Copy link

DummyThatMatters commented Oct 21, 2021

Describe the bug
Pod with matterbridge application restarting from time to time (~60 restarts in 24h) after catching panic: interface conversion: interface {} is *model.User, not map[string]interface {} error. This happened after updating our mattermost version to v6.0.0

To Reproduce
Run matterbrigde container with several Mattermost <->Telegram 1:1 channels integration, write some messages from time to time. Observe this error with pod (container) reboot .

Screenshots/debug logs
Error log:

2021-10-21 16:10:20 /go/src/matterbridge/vendor/github.com/matterbridge/matterclient/matterclient.go:161 +0x1f0
2021-10-21 16:10:20 created by github.com/matterbridge/matterclient.(*Client).Login
2021-10-21 16:10:20 /go/src/matterbridge/vendor/github.com/matterbridge/matterclient/matterclient.go:616 +0x496
2021-10-21 16:10:20 github.com/matterbridge/matterclient.(*Client).WsReceiver(0xc00164b420, {0x2464c98, 0xc000752200})
2021-10-21 16:10:20 /go/src/matterbridge/vendor/github.com/matterbridge/matterclient/messages.go:267 +0x217
2021-10-21 16:10:20 github.com/matterbridge/matterclient.(*Client).parseMessage(0xc00164b420, 0xc00141be8c)
2021-10-21 16:10:20 goroutine 125 [running]:
2021-10-21 16:10:20 panic: interface conversion: interface {} is *model.User, not map[string]interface {}`

Environment (please complete the following information):

  • OS: Alpine Linux v3.14
  • Matterbridge version: version: 1.23.0 55f41dd
  • Running v1.23.0 docker image from official 42wim dockerhub repository on OpenShift4 platform.

Additional context

  • Mattermost version: 6.0.0 and 6.0.1 (occurred on both versions)

Have one Telegram bot account with multiple channels relaying messages to single mattermost server (into several teams though) with channels in-out sync and relations as 1:1

@42wim
Copy link
Owner

42wim commented Oct 21, 2021

@DummyThatMatters this should be fixed now in master. Please reopen if still an issue
You can run the 42wim/matterbridge:master image to run with this fix.
A stable version will come later.

@42wim 42wim added this to the 1.23.1 milestone Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants