summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2024-10-29 10:09:25 +0000
committerGitHub <noreply@github.com>2024-10-29 10:09:25 +0000
commit6c51f8649d5b17eeb218da61583f0ca132fdd728 (patch)
tree8195ad372e90c85b2caf3e4c7b634bc4292ab368
parentBump types-setuptools from 75.1.0.20241014 to 75.2.0.20241019 (#17856) (diff)
downloadsynapse-6c51f8649d5b17eeb218da61583f0ca132fdd728.tar.xz
Include the destination in the error of 'Destination mismatch' (#17830)
To help debug problems such as
https://github.com/element-hq/synapse/issues/17822
Diffstat (limited to '')
-rw-r--r--changelog.d/17830.misc1
-rw-r--r--synapse/federation/transport/server/_base.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/17830.misc b/changelog.d/17830.misc
new file mode 100644

index 0000000000..b2cd91c0ad --- /dev/null +++ b/changelog.d/17830.misc
@@ -0,0 +1 @@ +Include the destination in the error of 'Destination mismatch' on federation requests. diff --git a/synapse/federation/transport/server/_base.py b/synapse/federation/transport/server/_base.py
index 9094201da0..cba309635b 100644 --- a/synapse/federation/transport/server/_base.py +++ b/synapse/federation/transport/server/_base.py
@@ -113,7 +113,7 @@ class Authenticator: ): raise AuthenticationError( HTTPStatus.UNAUTHORIZED, - "Destination mismatch in auth header", + f"Destination mismatch in auth header, received: {destination!r}", Codes.UNAUTHORIZED, ) if (