matrix-org / matrix-appservice-irc

Node.js IRC bridge for Matrix
Apache License 2.0
465 stars 151 forks source link

Manage integrations <> Freenode: Bridge returned HTTP 500 Internal Server Error: Provided user is not in channel #505

Open traumschule opened 7 years ago

traumschule commented 7 years ago

OS: ubuntu

  1. join an empty channel on freenode
  2. start riot-web, create a new channel on matrix.org
  3. add an IRC integration for freenode, add your channel and nick
  4. Save. The shown error is:

    Bridge returned HTTP 500 Internal Server Error: Provided user is not in channel

Can anybody reproduce this? Is this limited to Freenode?

Mikaela commented 7 years ago

add an IRC integration for freenode, add your channel and nick

Is this nick the one you use at IRC or the one of your IRC ghost (nick[m])?

Also have you ensured that the channel doesn't have any modes that could prevent the bot from joining?

traumschule commented 7 years ago

Hi! Just tried it again (both opped). Same error. The bot joins and leaves directly after. Does it crash or why does it leave directly after joining?

19:38 -!- MatrixBridge [matrixirc@gateway/shell/matrix.org/x-ftuxaditrytlpdlk] has joined #hitchhiking-dev 19:38 -!- MatrixBridge [matrixirc@gateway/shell/matrix.org/x-ftuxaditrytlpdlk] has left #hitchhiking-dev ["User left"] 19:38 -!- MatrixBridge [matrixirc@gateway/shell/matrix.org/x-ftuxaditrytlpdlk] has joined #hitchhiking-dev 19:38 -!- MatrixBridge [matrixirc@gateway/shell/matrix.org/x-ftuxaditrytlpdlk] has left #hitchhiking-dev ["User left"] 19:38 -!- MatrixBridge [matrixirc@gateway/shell/matrix.org/x-ftuxaditrytlpdlk] has joined #hitchhiking-dev 19:38 -!- MatrixBridge [matrixirc@gateway/shell/matrix.org/x-ftuxaditrytlpdlk] has left #hitchhiking-dev ["User left"]

traumschule commented 7 years ago

After todays server restart the error changed: Failed to make link: Unexpected token < in JSON at position 0

traumschule commented 7 years ago

Also the bot does not join the channel but after a long time the integrations windows shows the error: No chanops found in channel!

(All for Freenode)

traumschule commented 7 years ago

ok, back to "normal":

Bridge returned HTTP 500 Internal Server Error: Provided user is not in channel #hitchhiking-dev.

PC-Admin commented 7 years ago

I get the same error message, i tried setting +O flag as suggested but it didn't me past the 'HTTP 500' error, it did however get me past the 'No chanops found in channel!' error:

/msg chanserv flags #channel someone +O

irc3

Mikaela commented 7 years ago

I am trying to reproduce this now and I am typing here as I do it and see the results.

  1. From my IRC client on freenode WeeChat I (Mikaela) /join ##dsgh414 and /msg ChanServ register ##dsgh414.
  2. In Riot I create a new room and add alias #dsghd414:disroot.org and allow everyone to join and I also set room history visibility in case it appears to matter later.
  3. I open Manage Integrations menu, select IRC, select freenode, enter ##dsghd414 and Mikaela as the nick, but I won't request the integration yet.
  4. At WeeChat again I /umode -R so that the bridge can message me.
  5. I request the integration.
  6. First I see some sort of a complaint about timeout and failing to make a link, but I didn't think of copying those. I click again and get the following errors:

I don't see matrixbot even attempting to join the channel at IRC, but I am unsure if I managed to disable WeeChat filters that would have possibly hidden it.

I am sure that I am doing everything correctly, so I guess that I have reproduced this issue.

screenshot from 2017-10-20 18-08-02

traumschule commented 7 years ago

still the same "Bridge returned HTTP 500 Internal Server Error: Provided user is not in channel"

00:27 -!- MatrixBridge [matrixirc@gateway/shell/matrix.org/x-nhycwmvcigshikct] has joined #hitchhiking-dev
00:28 -!- mode/#hitchhiking-dev [+o MatrixBridge] by ChanServ
00:28 -!- MatrixBridge [matrixirc@gateway/shell/matrix.org/x-nhycwmvcigshikct] has left #hitchhiking-dev ["User left"]
00:28 -!- MatrixBridge [matrixirc@gateway/shell/matrix.org/x-nhycwmvcigshikct] has joined #hitchhiking-dev
00:28 -!- mode/#hitchhiking-dev [+o MatrixBridge] by ChanServ
00:28 -!- MatrixBridge [matrixirc@gateway/shell/matrix.org/x-nhycwmvcigshikct] has left #hitchhiking-dev ["User left"]

although something new happened:

00:21 -!- Irssi: Starting query in Freenode with MatrixBridge
00:21 <MatrixBridge> @traumschule:matrix.org has requested to bridge 'hitchwiki' (https://matrix.to/#/#hitchwiki-dev:matrix.org) with
                     #hitchhiking-dev on this IRC network. Respond with 'yes' or 'y' to allow, or simply ignore this message to disallow. You have
                     300 seconds from when this message was sent.
00:26 <traumschule> yes
00:26 <MatrixBridge> The bot was not expecting a message from you. You might have already replied to a request

Looks like I was too slow.

PureTryOut commented 6 years ago

I had this exact error yesterday, trying to create a new room and IRC channel (on Freenode) and bridging them together. Is somebody working on resolving this?

Mikaela commented 6 years ago

@ara4n Do you have any idea on that?

jwflory commented 5 years ago

This might be the root issue of vector-im/riot-web#6263.

georgkrause commented 5 years ago

have the same problem, cant link a matrix channel to a irc channel :(