Skip to content
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

Error: startVerification(): other device is unknown #3474

Closed
rex4539 opened this issue Nov 3, 2024 · 2 comments
Closed

Error: startVerification(): other device is unknown #3474

rex4539 opened this issue Nov 3, 2024 · 2 comments
Labels

Comments

@rex4539
Copy link

rex4539 commented Nov 3, 2024

Steps to reproduce

  1. Log in to Element X.
  2. Initiate verification.

Outcome

What did you expect?

Verification process is started and emojis are shown.

What happened instead?

Verification process never starts and eventually is self-cancelled.

Your phone model

iPhone 13

Operating system version

iOS 18.1

Application version

1.9.3 (134)

Homeserver

matrix.org

Will you send logs?

Yes

@rex4539
Copy link
Author

rex4539 commented Nov 3, 2024

log-1.log

2024-11-03T03:52:46.668Z D DEBUG matrix_sdk_crypto::machine: Received a to-device event
    at /home/runner/.cargo/git/checkouts/matrix-rust-sdk-1f4927f82a3d27bb/866b6e5/crates/matrix-sdk-crypto/src/machine/mod.rs:1273
    in matrix_sdk_crypto::machine::receive_to_device_event with sender="@rex-4539:matrix.org" event_type="m.key.verification.request" 
    in matrix_sdk_crypto::machine::receive_sync_changes
2024-11-03T03:52:46.669Z I INFO matrix_sdk_crypto::verification::machine: Received a new verification request
    from_device="KZTMUPKYHG"
    at /home/runner/.cargo/git/checkouts/matrix-rust-sdk-1f4927f82a3d27bb/866b6e5/crates/matrix-sdk-crypto/src/verification/machine.rs:343
    in matrix_sdk_crypto::verification::machine::receive_any_event with flow_id="d527a63ed7524eb0a6beaf16042c1356"
    in matrix_sdk_crypto::machine::receive_to_device_event with sender="@rex-4539:matrix.org" event_type="m.key.verification.request" 
    in matrix_sdk_crypto::machine::receive_sync_changes
2024-11-03T03:52:46.686Z D [Perf]: receiveSyncChanges took 29ms
2024-11-03T03:52:46.689Z D FetchHttpApi: --> GET https://matrix-client.matrix.org/_matrix/client/v3/devices/KZTMUPKYHG
2024-11-03T03:52:46.708Z D FetchHttpApi: --> POST https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=xxx&timeout=xxx
2024-11-03T03:52:46.927Z D FetchHttpApi: <-- GET https://matrix-client.matrix.org/_matrix/client/v3/devices/KZTMUPKYHG [238ms 200]
2024-11-03T03:52:47.937Z W WARN matrix_sdk_crypto::store: The user has a pending `/key/query` request which did not finish yet, some devices might be missing.
    user_id="@rex-4539:matrix.org"
    at /home/runner/.cargo/git/checkouts/matrix-rust-sdk-1f4927f82a3d27bb/866b6e5/crates/matrix-sdk-crypto/src/store/mod.rs:216
    in matrix_sdk_crypto::machine::get_user_devices with user_id="@rex-4539:matrix.org" timeout=Some(1s)
2024-11-03T03:52:48.972Z D ## 26037 ## Rendering Autocomplete for WysiwygAutocomplete with query: ""
2024-11-03T03:52:50.715Z D DEBUG eyeball::state: Waking up 1 waiting subscribers
    at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eyeball-0.8.8/src/state.rs:122
2024-11-03T03:52:50.717Z I Sending batch of to-device messages. type=m.key.verification.ready txnid=320c2f6e008c47599f863a4662b97f38 ["@rex-4539:matrix.org/KZTMUPKYHG (msgid undefined)"]
2024-11-03T03:52:50.717Z D FetchHttpApi: --> PUT https://matrix-client.matrix.org/_matrix/client/v3/sendToDevice/m.key.verification.ready/320c2f6e008c47599f863a4662b97f38
2024-11-03T03:52:50.736Z D EncryptionPanel: phase now Requested
2024-11-03T03:52:50.873Z D ## 26037 ## Rendering Autocomplete for WysiwygAutocomplete with query: ""
2024-11-03T03:52:50.894Z D FetchHttpApi: <-- PUT https://matrix-client.matrix.org/_matrix/client/v3/sendToDevice/m.key.verification.ready/320c2f6e008c47599f863a4662b97f38 [177ms 200]
2024-11-03T03:52:50.903Z D [Perf]: Mark Request as sent 3 took 8ms
2024-11-03T03:52:50.904Z D EncryptionPanel: phase now Ready
2024-11-03T03:52:50.974Z D ## 26037 ## Rendering Autocomplete for WysiwygAutocomplete with query: ""
2024-11-03T03:52:51.083Z D ## 26037 ## Rendering Autocomplete for WysiwygAutocomplete with query: ""
2024-11-03T03:52:51.918Z W WARN matrix_sdk_crypto::store: The user has a pending `/key/query` request which did not finish yet, some devices might be missing.
    user_id="@rex-4539:matrix.org"
    at /home/runner/.cargo/git/checkouts/matrix-rust-sdk-1f4927f82a3d27bb/866b6e5/crates/matrix-sdk-crypto/src/store/mod.rs:216
    in matrix_sdk_crypto::machine::get_user_devices with user_id="@rex-4539:matrix.org" timeout=Some(1s)
2024-11-03T03:52:55.263Z D FetchHttpApi: <-- POST https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=xxx&timeout=xxx [8555ms 200]
2024-11-03T03:52:55.266Z D DEBUG matrix_sdk_crypto::machine: Received a to-device event
    at /home/runner/.cargo/git/checkouts/matrix-rust-sdk-1f4927f82a3d27bb/866b6e5/crates/matrix-sdk-crypto/src/machine/mod.rs:1273
    in matrix_sdk_crypto::machine::receive_to_device_event with sender="@rex-4539:matrix.org" event_type="m.key.verification.start" 
    in matrix_sdk_crypto::machine::receive_sync_changes
2024-11-03T03:52:55.267Z I INFO matrix_sdk_crypto::verification::requests: Received a new verification start event
    sender="@rex-4539:matrix.org" device="KZTMUPKYHG" method=SasV1(SasV1Content { key_agreement_protocols: ["curve25519-hkdf-sha256"], hashes: ["sha256"], message_authentication_codes: ["hkdf-hmac-sha256", "hkdf-hmac-sha256.v2", "org.matrix.msc3783.hkdf-hmac-sha256"], short_authentication_string: ["decimal", "emoji"] })
    at /home/runner/.cargo/git/checkouts/matrix-rust-sdk-1f4927f82a3d27bb/866b6e5/crates/matrix-sdk-crypto/src/verification/requests.rs:1337
    in matrix_sdk_crypto::verification::machine::receive_any_event with flow_id="d527a63ed7524eb0a6beaf16042c1356"
    in matrix_sdk_crypto::machine::receive_to_device_event with sender="@rex-4539:matrix.org" event_type="m.key.verification.start" 
    in matrix_sdk_crypto::machine::receive_sync_changes
2024-11-03T03:52:55.268Z W WARN matrix_sdk_crypto::verification::requests: Received a key verification start event from an unknown device
    sender="@rex-4539:matrix.org" device="KZTMUPKYHG"
    at /home/runner/.cargo/git/checkouts/matrix-rust-sdk-1f4927f82a3d27bb/866b6e5/crates/matrix-sdk-crypto/src/verification/requests.rs:1345
    in matrix_sdk_crypto::verification::machine::receive_any_event with flow_id="d527a63ed7524eb0a6beaf16042c1356"
    in matrix_sdk_crypto::machine::receive_to_device_event with sender="@rex-4539:matrix.org" event_type="m.key.verification.start" 
    in matrix_sdk_crypto::machine::receive_sync_changes
2024-11-03T03:52:55.282Z D [Perf]: receiveSyncChanges took 18ms
2024-11-03T03:52:55.285Z D FetchHttpApi: --> POST https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=xxx&timeout=xxx
2024-11-03T03:52:55.913Z W WARN matrix_sdk_crypto::store: The user has a pending `/key/query` request which did not finish yet, some devices might be missing.
    user_id="@rex-4539:matrix.org"
    at /home/runner/.cargo/git/checkouts/matrix-rust-sdk-1f4927f82a3d27bb/866b6e5/crates/matrix-sdk-crypto/src/store/mod.rs:216
    in matrix_sdk_crypto::machine::get_device with user_id="@rex-4539:matrix.org" device_id="KZTMUPKYHG" timeout=Some(5s)
2024-11-03T03:52:55.914Z E Error generating QR code: generateQRCode(): other device is unknown
Error: generateQRCode(): other device is unknown
    at RustVerificationRequest.generateQRCode (vector://vector/webapp/bundles/c39d3675f851aa1cdf55/9417.js:1580:13)
2024-11-03T03:52:58.899Z W WARN matrix_sdk_crypto::store: The user has a pending `/key/query` request which did not finish yet, some devices might be missing.
    user_id="@rex-4539:matrix.org"
    at /home/runner/.cargo/git/checkouts/matrix-rust-sdk-1f4927f82a3d27bb/866b6e5/crates/matrix-sdk-crypto/src/store/mod.rs:216
    in matrix_sdk_crypto::machine::get_device with user_id="@rex-4539:matrix.org" device_id="KZTMUPKYHG" timeout=Some(5s)
2024-11-03T03:52:58.900Z error Unhandled promise rejection: Error: startVerification(): other device is unknown
2024-11-03T03:53:15.424Z D FetchHttpApi: <-- POST https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=xxx&timeout=xxx [20139ms 200]
2024-11-03T03:53:15.427Z D FetchHttpApi: --> POST https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=xxx&timeout=xxx
2024-11-03T03:53:35.565Z D FetchHttpApi: <-- POST https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=xxx&timeout=xxx [20138ms 200]
2024-11-03T03:53:35.568Z D FetchHttpApi: --> POST https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=xxx&timeout=xxx
2024-11-03T03:53:55.707Z D FetchHttpApi: <-- POST https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=xxx&timeout=xxx [20139ms 200]
2024-11-03T03:53:55.712Z D FetchHttpApi: --> POST https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=xxx&timeout=xxx
2024-11-03T03:53:55.934Z D FetchHttpApi: <-- POST https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=xxx&timeout=xxx [222ms 200]
2024-11-03T03:53:55.935Z D DEBUG matrix_sdk_crypto::machine: Received a to-device event
    at /home/runner/.cargo/git/checkouts/matrix-rust-sdk-1f4927f82a3d27bb/866b6e5/crates/matrix-sdk-crypto/src/machine/mod.rs:1273
    in matrix_sdk_crypto::machine::receive_to_device_event with sender="@rex-4539:matrix.org" event_type="m.key.verification.cancel" 
    in matrix_sdk_crypto::machine::receive_sync_changes
2024-11-03T03:53:55.936Z D DEBUG eyeball::state: Waking up 1 waiting subscribers
    at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eyeball-0.8.8/src/state.rs:122
    in matrix_sdk_crypto::verification::machine::receive_any_event with flow_id="d527a63ed7524eb0a6beaf16042c1356"
    in matrix_sdk_crypto::machine::receive_to_device_event with sender="@rex-4539:matrix.org" event_type="m.key.verification.cancel" 
    in matrix_sdk_crypto::machine::receive_sync_changes
2024-11-03T03:53:55.937Z D EncryptionPanel: phase now Cancelled
2024-11-03T03:53:55.954Z D [Perf]: receiveSyncChanges took 20ms
2024-11-03T03:53:55.958Z D FetchHttpApi: --> POST https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=xxx&timeout=xxx
2024-11-03T03:54:03.397Z I Sending batch of to-device messages. type=m.key.verification.cancel txnid=a366982073474315b4dd9c1da525c069 ["@rex-4539:matrix.org/* (msgid undefined)"]
2024-11-03T03:54:03.397Z D FetchHttpApi: --> PUT https://matrix-client.matrix.org/_matrix/client/v3/sendToDevice/m.key.verification.cancel/a366982073474315b4dd9c1da525c069
2024-11-03T03:54:03.650Z D FetchHttpApi: <-- PUT https://matrix-client.matrix.org/_matrix/client/v3/sendToDevice/m.key.verification.cancel/a366982073474315b4dd9c1da525c069 [253ms 200]
2024-11-03T03:54:03.651Z D [Perf]: Mark Request as sent 3 took 0ms
2024-11-03T03:54:03.708Z D FetchHttpApi: <-- POST https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=xxx&timeout=xxx [7750ms 200]
2024-11-03T03:54:03.709Z D DEBUG matrix_sdk_crypto::machine: Received a to-device event
    at /home/runner/.cargo/git/checkouts/matrix-rust-sdk-1f4927f82a3d27bb/866b6e5/crates/matrix-sdk-crypto/src/machine/mod.rs:1273
    in matrix_sdk_crypto::machine::receive_to_device_event with sender="@rex-4539:matrix.org" event_type="m.key.verification.cancel" 
    in matrix_sdk_crypto::machine::receive_sync_changes

Problem seems to be 2024-11-03T03:52:58.900Z error Unhandled promise rejection: Error: startVerification(): other device is unknown

@pixlwave
Copy link
Member

pixlwave commented Nov 4, 2024

This isn't supported in the current release, however the timing of this issue is great, as the next RC adds support for handling incoming device verifications.

#3428

@pixlwave pixlwave closed this as not planned Won't fix, can't repro, duplicate, stale Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants