{"record":{"id":"dd134e16364422b7","repo":"clockworklabs/SpacetimeDB","slug":"procedure-sleep-until-is-only-available-in-async-i","errorCode":null,"errorMessage":"procedure_sleep_until is only available in async instances","messagePattern":"procedure_sleep_until is only available in async instances","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/core/src/host/wasmtime/wasmtime_module.rs","lineNumber":130,"sourceCode":"fn link_sync_stub_for_async_function(\n    linker: &mut Linker<WasmInstanceEnv>,\n    module: &'static str,\n    name: &'static str,\n) -> anyhow::Result<()> {\n    match name {\n        \"procedure_sleep_until\" => {\n            linker.func_wrap(module, name, procedure_sleep_until_sync_stub)?;\n        }\n        \"procedure_http_request\" => {\n            linker.func_wrap(module, name, procedure_http_request_sync_stub)?;\n        }\n        _ => anyhow::bail!(\"missing sync Wasmtime stub for async ABI import `{module}::{name}`\"),\n    }\n    Ok(())\n}\n\nfn procedure_sleep_until_sync_stub(_: Caller<'_, WasmInstanceEnv>, _: i64) -> anyhow::Result<i64> {\n    anyhow::bail!(\"procedure_sleep_until is only available in async instances\")\n}\n\nfn procedure_http_request_sync_stub(\n    _: Caller<'_, WasmInstanceEnv>,\n    _: u32,\n    _: u32,\n    _: u32,\n    _: u32,\n    _: u32,\n) -> anyhow::Result<u32> {\n    anyhow::bail!(\"procedure_http_request is only available in async instances\")\n}\n\nmacro_rules! impl_wasmtime_module {\n    ($module:ty) => {\n        impl module_host_actor::WasmModule for $module {\n            type Instance = WasmtimeInstance;\n            type InstancePre = Self;","sourceCodeStart":112,"sourceCodeEnd":148,"githubUrl":"https://github.com/clockworklabs/SpacetimeDB/blob/524b4487d949b61a07d4f39c862d1290259dfd20/crates/core/src/host/wasmtime/wasmtime_module.rs#L112-L148","documentation":"Error \"procedure_sleep_until is only available in async instances\" thrown in clockworklabs/SpacetimeDB.","triggerScenarios":"Thrown at crates/core/src/host/wasmtime/wasmtime_module.rs:130 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":"524b4487d949b61a07d4f39c862d1290259dfd20","analyzedAt":"2026-08-16T23:58:54.611Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}