-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Successful download from key backup, but 0 keys returned #3197
Comments
Is it possible the user just didn't upload keys? Or are you surprised that it's 200 OKing with 0 keys rather than 404ing? |
Indeed. If the user hadn't uploaded keys for this session, it would be a 404. |
I have a case of this log caused by this error
|
A source of this bug has been found #3247 |
I think we can probably ascribe the observed failures to #3247 which is now fixed, and the fact that no warning was logged was probably fixed in #3149. I think we can close this, though it's worth noting that the fix to #3247 still needs releasing on EAR and EiR (https://github.com/element-hq/crypto-internal/issues/192 and https://github.com/element-hq/crypto-internal/issues/193) |
During analysis of a rageshake log after an unable-to-decrypt error, I see an attempt to download a copy of the session key from backup:
What is strange here is that the request returns successfully, but
total_count=0
, implying that no keys were found. Walking through the rust-sdk code starting atmatrix-sdk::encryption::backups::Backups::download_room_key
, I cannot see any code path in which a successful request to/_matrix/client/v3/room_keys/keys/:room_id/:session_id
results intotal_count=0
.Unless I'm missing something obvious, I suggest adding more logging to understand what's going on.
The text was updated successfully, but these errors were encountered: