1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-08-01 04:38:31 +00:00
continuwuity/src/core
strawberry 71bdcb958a fix: dont drop remote federation error on 4xx responses
for a very long time, if a remote server responded to us with
a valid but unsuccessful (HTTP 4xx) response and the caller was the
`send_federation_request` function, we may find ourselves
with a warning message only containing the destination's
server name which was very unhelpful. the true error was
buried away in trace logs. this would primarily be noticed
with server key fetch requests from us.

conduit has been throwing away the ruma request error: https://gitlab.com/famedly/conduit/-/blame/next/src/utils/error.rs#L62

before: 2024-05-23T04:45:02.930224Z  WARN router:{path=/_matrix/client/v3/publicRooms}:handle: conduit_api::client_server::directory: Failed to return our /publicRooms: matrix.org
after: 2024-05-23T05:05:02.435272Z  WARN router:{path=/_matrix/client/v3/publicRooms}:handle: conduit_api::client_server::directory: Failed to return our /publicRooms: matrix.org: [401 / M_UNAUTHORIZED] Failed to find any key to satisfy: _FetchKeyRequest(server_name='your.server.name', minimum_valid_until_ts=1716440702337, key_ids=['ed25519:RQB3XPQX'])

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-25 22:28:43 -04:00
..
alloc Hot-Reloading Refactor 2024-05-21 20:22:17 -04:00
config Hot-Reloading Refactor 2024-05-21 20:22:17 -04:00
mods fix smoke from builds produced by --all-features 2024-05-21 20:22:17 -04:00
utils move clap; fix version 2024-05-21 20:22:17 -04:00
Cargo.toml fix smoke from builds produced by --all-features 2024-05-21 20:22:17 -04:00
debug.rs fix smoke from builds produced by --all-features 2024-05-21 20:22:17 -04:00
error.rs fix: dont drop remote federation error on 4xx responses 2024-05-25 22:28:43 -04:00
log.rs Hot-Reloading Refactor 2024-05-21 20:22:17 -04:00
mod.rs fix smoke from builds produced by --all-features 2024-05-21 20:22:17 -04:00
pducount.rs Hot-Reloading Refactor 2024-05-21 20:22:17 -04:00
server.rs Hot-Reloading Refactor 2024-05-21 20:22:17 -04:00