{"record":{"id":"0261ff4f6fc4c690","repo":"clockworklabs/SpacetimeDB","slug":"procedure-http-request-is-only-available-in-async","errorCode":null,"errorMessage":"procedure_http_request is only available in async instances","messagePattern":"procedure_http_request 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":141,"sourceCode":"        }\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;\n            type ExternType = ExternType;\n\n            fn get_export(&self, s: &str) -> Option<Self::ExternType> {\n                self.module\n                    .module()\n                    .exports()\n                    .find(|exp| exp.name() == s)\n                    .map(|exp| exp.ty())\n            }\n\n            fn for_each_export<E>(&self, mut f: impl FnMut(&str, &Self::ExternType) -> Result<(), E>) -> Result<(), E> {","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/clockworklabs/SpacetimeDB/blob/524b4487d949b61a07d4f39c862d1290259dfd20/crates/core/src/host/wasmtime/wasmtime_module.rs#L123-L159","documentation":"Error \"procedure_http_request is only available in async instances\" thrown in clockworklabs/SpacetimeDB.","triggerScenarios":"Thrown at crates/core/src/host/wasmtime/wasmtime_module.rs:141 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"}