Skip to content

Commit

Permalink
Include the destination in the error of 'Destination mismatch' (#17830)
Browse files Browse the repository at this point in the history
To help debug problems such as
#17822
  • Loading branch information
erikjohnston authored Oct 29, 2024
1 parent 69e9b75 commit 6c51f86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/17830.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include the destination in the error of 'Destination mismatch' on federation requests.
2 changes: 1 addition & 1 deletion synapse/federation/transport/server/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ async def authenticate_request(
):
raise AuthenticationError(
HTTPStatus.UNAUTHORIZED,
"Destination mismatch in auth header",
f"Destination mismatch in auth header, received: {destination!r}",
Codes.UNAUTHORIZED,
)
if (
Expand Down

0 comments on commit 6c51f86

Please sign in to comment.