{"record":{"id":"215305c72612c9e4","repo":"spacedriveapp/spacedrive","slug":"device-not-found-in-registry-not-paired-or-off","errorCode":null,"errorMessage":"Device {} not found in registry (not paired or offline)","messagePattern":"Device (.+?) not found in registry \\(not paired or offline\\)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"core/src/service/network/protocol/sync/transport.rs","lineNumber":124,"sourceCode":"\n\t/// Send a sync request and wait for response\n\t///\n\t/// Uses bidirectional streams for proper request/response pattern (Iroh best practice)\n\tasync fn send_sync_request(\n\t\t&self,\n\t\ttarget_device: Uuid,\n\t\trequest: SyncMessage,\n\t) -> Result<SyncMessage> {\n\t\tuse tokio::io::{AsyncReadExt, AsyncWriteExt};\n\t\tuse tokio::time::{timeout, Duration};\n\n\t\t// Look up NodeId for device UUID\n\t\tlet node_id = {\n\t\t\tlet registry = self.device_registry.read().await;\n\t\t\tregistry\n\t\t\t\t.get_node_id_for_device(target_device)\n\t\t\t\t.ok_or_else(|| {\n\t\t\t\t\tanyhow::anyhow!(\n\t\t\t\t\t\t\"Device {} not found in registry (not paired or offline)\",\n\t\t\t\t\t\ttarget_device\n\t\t\t\t\t)\n\t\t\t\t})?\n\t\t};\n\n\t\tdebug!(\n\t\t\tdevice_uuid = %target_device,\n\t\t\tnode_id = %node_id,\n\t\t\tmessage_type = ?std::mem::discriminant(&request),\n\t\t\tlibrary_id = %request.library_id(),\n\t\t\t\"Sending sync request\"\n\t\t);\n\n\t\t// Get endpoint\n\t\tlet endpoint = self\n\t\t\t.endpoint\n\t\t\t.as_ref()","sourceCodeStart":106,"sourceCodeEnd":142,"githubUrl":"https://github.com/spacedriveapp/spacedrive/blob/6dfeccf2113039e35f2ce735f945e70dc3e4ea45/core/src/service/network/protocol/sync/transport.rs#L106-L142","documentation":"Error \"Device {} not found in registry (not paired or offline)\" thrown in spacedriveapp/spacedrive.","triggerScenarios":"Thrown at core/src/service/network/protocol/sync/transport.rs:124 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6dfeccf2113039e35f2ce735f945e70dc3e4ea45","analyzedAt":"2026-08-16T11:26:17.074Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}