Skip to content

Commit 6c51f86

Browse files
authored
Include the destination in the error of 'Destination mismatch' (#17830)
To help debug problems such as #17822
1 parent 69e9b75 commit 6c51f86

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/17830.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Include the destination in the error of 'Destination mismatch' on federation requests.

synapse/federation/transport/server/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ async def authenticate_request(
113113
):
114114
raise AuthenticationError(
115115
HTTPStatus.UNAUTHORIZED,
116-
"Destination mismatch in auth header",
116+
f"Destination mismatch in auth header, received: {destination!r}",
117117
Codes.UNAUTHORIZED,
118118
)
119119
if (

0 commit comments

Comments
 (0)