mautrix / meta

A Matrix-Facebook Messenger and Instagram DM puppeting bridge.
GNU Affero General Public License v3.0
178 stars 12 forks source link

How to reload websocket connection when it's down? #21

Closed AZSJTinus closed 9 months ago

AZSJTinus commented 9 months ago

Sometimes something goes wrong in the meta messenger bridge resulting in messages like the one below appearing in the "Messenger bridge bot" room: Error in WhatsApp connection: CAT refresh failed

Afterwards, sending messages results in these messages appearing in the personal chat rooms: ⚠ Your message may not have been bridged: failed to send message node: websocket not connected

However I'm unable to reconnect to the websocket, there appears to be no 'refresh' command. Failed to parse input as JSON: invalid character 'r' looking for beginning of value

Only logging out and in again appears to fix the issue, however this is not really feasible as there is no easy way to get the cookies on mobile.

Is there an other possibility to reconnect?

tulir commented 9 months ago

That was already fixed in the latest version. Logs are also required for almost any issues

AZSJTinus commented 9 months ago

It appears to not be fixed as I'm on version 0.1.0 since at least 26/feb and received the same messages today: image

Version 0.1.0: image

tulir commented 9 months ago

Releases are almost always outdated

Devenda commented 9 months ago

Ok thanks for the info, than I'll wait for the new release.

kevincox commented 6 months ago

I've hit this as well. It would be great to have a command to do this. Reloading the bridge seems to work but I don't always have a terminal easily available. Even just a shutdown command would be great, then the service manager can reload.