turt2live / matrix-appservice-twilio

A matrix SMS bridge, powered by Twilio
GNU General Public License v3.0
21 stars 7 forks source link

Outgoing messages not reaching Twilio #30

Open sudotm opened 4 years ago

sudotm commented 4 years ago

Recently, my outgoing messages are not being received by Twilio. It was working fine last week and now is a persistent issue. I first noticed the issue with Synapse version 1.18.0 but it is also occurring on 1.19.1.

When sending a message, the read receipt does not update. When creating a new room the @_twilio_ bot does not enter the room and the "SMS Bridge" bot is never invited. Incoming messages work fine for both existing and new conversations.

I have not made any recent changes to my Matrix or Twilio setups other than routine updates. I suspect either Synapse or Twilio has made changes that break this bridge. Twilio has started to require 2FA when logging into the console, so perhaps that could be related.

Interestingly, looking through my Twilio logs I see that the last message I sent actually took 2 days to reach Twilio. This has never happened before and, once again, I made no recent configuration changes.

I see nothing of interest in the logs other than this:

Aug-27-2020 17:38:01.493 -04:00 warn [TwilioBridge] Room !rxxxxxxxxxxxxxxP:my.matrix.site is a multi-user chat (currently not supported)

Though, I think this message always occurred, but I'm not sure.

Could you let me know if this issue is also affecting your own bridge? I am happy to perform any troubleshooting or provide logs if needed.

Update: All of my messages from today eventually did send, Twilio logs are reporting "Delivered" and I verified this with the recipient directly. The time between my Matrix server receiving the message and the SMS reaching its final destination was about 6 hours.

Around the same time as the messages finally being delivered, my Matrix channel gave the following alert:

"There was an error sending your text message. Please try again later or contact the bridge operator."

This alert is obviously incorrect as the message did send successfully.

I see the following activity in the twilio-appservice logs when this occurs:

Aug 28 00:20:43 synapse node[12533]: Aug-28-2020 00:20:43.083 -04:00 error [SmsSender] Error sending SMS message from +1987654321 to +1234567890 in room !mxxxxxxxxxxxxxG:my.matrix.site
Aug 28 00:20:43 synapse node[12533]: Aug-28-2020 00:20:43.083 -04:00 error [SmsSender] Message body is required.
Aug 28 00:20:43 synapse node[12533]: undefined