clockworklabs/SpacetimeDB · error · anyhow::Error

procedure_http_request is only available in async instances

Error message

procedure_http_request is only available in async instances

What it means

Error "procedure_http_request is only available in async instances" thrown in clockworklabs/SpacetimeDB.

Source

Thrown at crates/core/src/host/wasmtime/wasmtime_module.rs:141

        }
        _ => anyhow::bail!("missing sync Wasmtime stub for async ABI import `{module}::{name}`"),
    }
    Ok(())
}

fn procedure_sleep_until_sync_stub(_: Caller<'_, WasmInstanceEnv>, _: i64) -> anyhow::Result<i64> {
    anyhow::bail!("procedure_sleep_until is only available in async instances")
}

fn procedure_http_request_sync_stub(
    _: Caller<'_, WasmInstanceEnv>,
    _: u32,
    _: u32,
    _: u32,
    _: u32,
    _: u32,
) -> anyhow::Result<u32> {
    anyhow::bail!("procedure_http_request is only available in async instances")
}

macro_rules! impl_wasmtime_module {
    ($module:ty) => {
        impl module_host_actor::WasmModule for $module {
            type Instance = WasmtimeInstance;
            type InstancePre = Self;
            type ExternType = ExternType;

            fn get_export(&self, s: &str) -> Option<Self::ExternType> {
                self.module
                    .module()
                    .exports()
                    .find(|exp| exp.name() == s)
                    .map(|exp| exp.ty())
            }

            fn for_each_export<E>(&self, mut f: impl FnMut(&str, &Self::ExternType) -> Result<(), E>) -> Result<(), E> {

View on GitHub (pinned to 524b4487d9)

When it happens

Trigger: Thrown at crates/core/src/host/wasmtime/wasmtime_module.rs:141 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of clockworklabs/SpacetimeDB@524b4487d9 (2026-08-16). Data as JSON: /api/errors/0261ff4f6fc4c690. Report an issue: GitHub.