42wim / matterbridge

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Apache License 2.0
6.67k stars 619 forks source link

Unable to find gitter roomID #135

Closed jck closed 7 years ago

jck commented 7 years ago

Please answer the following questions.

Which version of matterbridge are you using?

run matterbridge -version version: 0.9.3 cd0a2be

Please describe the actual behavior.

Use logs from running matterbridge -debug if possible.

ERRO[2017-03-15T22:29:16-04:00] Could not find roomID for myhdl/myhdl module=gitter

Any steps to reproduce the behavior?

Please add your configuration file

(be sure to exclude or anonymize private data (tokens/passwords))

[irc] [irc.freenode] Server="irc.freenode.net:6667" Nick="myhdl-bot"

[gitter] [gitter.myhdl] Token="REDACTED"

[[gateway]] name="mygateway" enable=true [gateway.inout]] account="irc.freenode" channel="#myhdl"

[[gateway.inout]]
account="gitter.myhdl"
channel="myhdl/myhdl"
42wim commented 7 years ago

The room has to exist before you can join it. Create it on gitter.im I've fixed this in master so that it bails out now when it tries to join a channel that doesn't exist.

jck commented 7 years ago

The room does exist! https://gitter.im/myhdl/myhdl

42wim commented 7 years ago

Hm, that's strange. I just succesfully connected my bridge to your channel. Going to retry with 0.9.3

42wim commented 7 years ago

Also ok with v0.9.3 You do use the token from https://developer.gitter.im/apps ?

jck commented 7 years ago

Yes, I use the token from that page.

INFO[2017-03-16T21:11:38-04:00] Starting bridge: gitter.myhdl                
INFO[2017-03-16T21:11:38-04:00] Connecting                                    module=gitter
INFO[2017-03-16T21:11:39-04:00] Connection succeeded                          module=gitter

But it can never find the room. I will try building it from source instead of using the binary.

jck commented 7 years ago

This is what I get after go get ing.

INFO[2017-03-16T21:15:26-04:00] gitter.myhdl: joining myhdl/myhdl            
FATA[2017-03-16T21:15:26-04:00] Starting gateway failed &errors.errorString{s:"Bridge gitter.myhdl failed to join channel: Could not find roomID for myhdl/myhdl. Please create the room on gitter.im"} 
42wim commented 7 years ago

@jck found the issue. You couldn't join a room that wasn't joined already by the bot :/ Should be fixed now, if you do a go get -u in your repo

jck commented 7 years ago

On v0.10.1, I'm indefinitely stuck on joining channel

42wim commented 7 years ago

could you please:

jck commented 7 years ago

My bad, seems like I needed to wait longer. It works now.

Thank you so much for fixing this!

42wim commented 7 years ago

Great to hear!