matrix-org / matrix-appservice-discord

A bridge between Matrix and Discord.
Apache License 2.0
785 stars 148 forks source link

Matrix->Discord is broken on Synapse 1.90.0+ unless use_appservice_legacy_authorization is set #896

Closed jlu5 closed 10 months ago

jlu5 commented 10 months ago

When I upgraded my Synapse instance today I noticed that the bridge stopped relaying from Matrix to Discord.

In the logs for matrix-appservice-discord I saw this:

Sep-1 06:05:15.773 [bot-sdkAppservice] info: [
  '127.0.0.1 - - [01/Sep/2023:06:05:15 +0000] "PUT /_matrix/app/v1/transactions/695537? HTTP/1.1" 401 57 "-" "Synapse/1.91.0"\n'
]

The workaround is to enable use_appservice_legacy_authorization: true in the Synapse config, but ideally this is a temporary solution. matrix-appservice-discord should probably switch to the Authorization header mentioned in that changelog link.