Open Vyquos opened 1 year ago
The reason for the TransactionId
-reset may be newly generated appservice / homeserver tokens in discord-registration.yaml
.
This can be manually fixed by clearing the as_txns
table in discord.db
.
Seeing as this seems to be an issue with crashes too i suspect that any restart of the connection between the homeserver and the appservice causes this breakage.
To Reproduce
discord-registration.yaml
according to the instructions in the README^1discord-registration.yaml
with the newly generated oneBehavior After completing all steps above, the new message isn't bridged to discord.
What goes wrong
TransactionId
of new matrix events is reset to 1 (This can be shown by logging thetxnId
in the bot sdk).as_txns
indiscord.db
still retains all previousTransactionId
s.TransactionId
(e.g.2
) is a member ofdiscord.db
sas_txns
table^3 (e.g.1, 2, 3, 4, ..., 100
).TransactionId
from messages that were sent before regeneratingdiscord-registration.yaml
, the bot sdk ignores the transaction.