42wim/matterbridge

failed to join channel: json: cannot unmarshal array into Go struct field RoomInfo.ocs.data.lastMessage of type ocs.TalkRoomMessageData

shortyxs opened this issue · 0 comments

Describe the bug
Had a bridge between IRC and Nextcloud workig and all the sudden it fails connecting to nextcloud with a json parse error

To Reproduce
Steps to reproduce the behavior:
Starting the Matterbreidge service

Expected behavior
should work as it did until a few days ago

Screenshots/debug logs
time="2023-09-08T15:58:00+02:00" level=info msg="Parsing gateway gateway1" prefix=router
time="2023-09-08T15:58:00+02:00" level=info msg="Starting bridge: irc.quakenet " prefix=router
time="2023-09-08T15:58:00+02:00" level=info msg="Connecting stockholm.se.quakenet.org:6667" prefix=irc
time="2023-09-08T15:58:14+02:00" level=info msg="Connection succeeded" prefix=irc
time="2023-09-08T15:58:14+02:00" level=info msg="irc.quakenet: joining #radiozoom (ID: #radiozoomirc.quakenet)" prefix=irc
time="2023-09-08T15:58:14+02:00" level=info msg="Starting bridge: nctalk.cloud " prefix=router
time="2023-09-08T15:58:14+02:00" level=info msg=Connecting prefix=nctalk
time="2023-09-08T15:58:14+02:00" level=info msg=Connected prefix=nctalk
time="2023-09-08T15:58:14+02:00" level=info msg="nctalk.cloud: joining wwfrnvig (ID: wwfrnvignctalk.cloud)" prefix=nctalk
time="2023-09-08T15:58:15+02:00" level=fatal msg="Starting gateway failed: Bridge nctalk.cloud failed to join channel: json: cannot unmarshal array into Go struct field RoomInfo.ocs.data.lastMessage of type ocs.TalkRoomMessageData" prefix=main
time="2023-09-08T15:58:20+02:00" level=info msg="Parsing gateway gateway1" prefix=router

Environment (please complete the following information):

  • OS: Debian 12 Linux LXC Container on Proxmox 7.4., unprivilidged, nesting enabled
  • Matterbridge version: 1.26.0 6dafebc

Additional context
More or less copy and pasted from various examples. At least it worked a couple of weeks. No changes were made to the config once it worked.

[general]
#check https://github.com/42wim/matterbridge/wiki/Settings#general
#some options for general configs such as
LogFile="/var/log/matterbridge.log"
ShowJoinPart=true
#IgnoreFailureOnStart=true

[irc.quakenet]
Server="stockholm.se.quakenet.org:6667"
Charset="utf-8"
Nick="ChatBot"
RemoteNickFormat="<{NICK}> "

[nctalk.cloud]

The location of your Nextcloud instance with Talk installed

Server="https://cloud.some.tld"
Login="user"
Password="Password"
RemoteNickFormat="<{NICK}> "

[[gateway]]
name="gateway1"
enable=true

[[gateway.inout]]
account="irc.quakenet"
channel="#somechannel"

[[gateway.inout]]
account="nctalk.cloud"
channel="some1234id"