nextcloud / talk_matterbridge

This app brings the Matterbridge binary to your server to connect Nextcloud Talk with other chat services
https://apps.nextcloud.com/apps/talk_matterbridge
GNU Affero General Public License v3.0
39 stars 7 forks source link

XMPP connection gets invalid character on connect. #66

Open Luticus opened 2 years ago

Luticus commented 2 years ago

I'm trying to connect a talk channel to my xmpp server but when I enable the bridge I get the following error. level=fatal msg="Starting gateway failed: Bridge nctalk.1 failed to start: invalid character '<' looking for beginning of value" prefix=main

I"m using the latest version of nextcloud, talk, and matterbridge.

I have the settings filled out like this:

url:  example.com:5222
muc: conference.example.com:5222
jid: user@example.com
nickname: bot
password: a long password
channel: channelname

I've verified that my account can log into my xmpp server over a normal xmpp client via username/password authentication. It works via the jsxc nextcloud app as well.

Any help would be greatly appreciated.

sirdrakeistda commented 2 years ago

I have noticed, that your muc contains :5222. This should not be needed (so just type muc: conference.example.com). I don't think this is the issue. Interesting would be if your password contains this '<' character or are there any none default characters in the username or channel name (xmpp allows most unicode characters, see also: https://xmpp.org/extensions/xep-0029.html)

c-holtermann commented 1 year ago

As written in https://help.nextcloud.com/t/zwei-talk-instanzen-mittels-talk-matterbridge-verbinden/124537/5?u=c-holtermann for me this was a credential issue on the nextcloud part. There is a bug https://github.com/nextcloud/server/issues/33198 that returns an xml response in that case even if json is requested and would contain the message "unauthorized". I am on Nextcloud Hub 5 (27.0.0)