matrix-org / matrix-appservice-irc

Node.js IRC bridge for Matrix
Apache License 2.0
467 stars 152 forks source link

Adding IRC bridge widget fails, libera.chat #1652

Open quite opened 1 year ago

quite commented 1 year ago

I had a room on matrix.org bridge to a channel on libera.chat . It worked for a few months with some hitches. But some time during past couple of weeks it is down.

I'm trying to re-add the bridge, but I'm getting the message Failed to make link: Unexpected token '<', "<!DOCTYPE "... is not valid JSON in the widget dialog.

quite commented 1 year ago

I've tried creating a brand new room on matrix.org and I could successfully bridge this to a brand new channel of mine on libera.chat. So something is messed up with the channel in the above case?

quite commented 1 year ago

I can help out on my end if anybody responsible for maintaining the bridge want to collaborate? Perhaps solving this will resolve other issues with the libera.chat bridging.

quite commented 1 year ago

I have found out that the issue here might be with Scalar, apparently a closed-source component that manages the configuration of integrations. It was also told "in Element, go to "Manage widgets, integrations, and bots" (or whatever it's called in English) the popup that opens *is* Scalar".

So in this case, the configuration have somehow broke, and what's preventing me from setting it up again might be a bug in this Scalar. Does anybody know more about Scalar, or the deployment and maintenance of it?

quite commented 1 year ago

1617 has another issue with this Scalar, but different error message.

quite commented 1 year ago

Now that #1695 is done, I tried the new integration manager, and got "Could not request link. Error IRC_DOUBLE_BRIDGE: Room failed validation. You may be attempting to "double bridge" this room. Error: Error: M_FORBIDDEN: Appservice not in room" when trying to bridge the room and channel in question. Is there some old bridge that needs to be purged somehow? Does @Half-Shot know?

And now, the room (also?) has the "IRC Bridge (Libera.Chat)" extension, which when I try to remove it says "Something went wrong. Failed to delete this extension from the room: You need to be able to kick users to do that."

quite commented 1 year ago

I still cannot get the room re-plumbed. Things look different though. When I'm following https://matrix.org/blog/2023/07/make-sure-libera-bridge-keeps-working/ and hitting "Request link", I get Could not request link. after a while. @thibaultamartin

Again, this may be some issue particularly with this room, so you're welcome to contact me on, well, maybe @quite:matrix.org

quite commented 1 year ago

Now we got this message again when retrying: Could not request link. Error IRC_DOUBLE_BRIDGE: Room failed validation. You may be attempting to "double bridge" this room. Error: Error: M_FORBIDDEN: Appservice not in room