wasmerio/wasmer · error
payload type mismatch
Error message
payload type mismatch
What it means
Error "payload type mismatch" thrown in wasmerio/wasmer.
Source
Thrown at lib/api/src/backend/sys/entities/exception.rs:41
if !tag.is_from_store(store) {
panic!("cannot create Exception with Tag from another Store");
}
let store_objects = store.as_store_ref().objects().as_sys();
let store_id = store_objects.id();
let tag_ty = tag.handle.get(store_objects).signature.params();
if tag_ty.len() != payload.len() {
panic!("payload length mismatch");
}
let values = payload
.iter()
.enumerate()
.map(|(i, v)| {
if v.ty() != tag_ty[i] {
panic!("payload type mismatch");
}
v.as_raw(store)
})
.collect::<Vec<_>>()
.into_boxed_slice();
let ctx = store.objects_mut().as_sys_mut();
let exception = wasmer_vm::VMExceptionObj::new(tag.handle.internal_handle(), values);
let exn_handle = wasmer_vm::StoreHandle::new(ctx, exception);
let exnref = wasmer_vm::VMExceptionRef(exn_handle);
Self { exnref }
}
pub fn exnref(&self) -> wasmer_vm::VMExceptionRef {
self.exnref.clone()
}
View on GitHub (pinned to 8c4b9ee9d3)
When it happens
Trigger: Thrown at lib/api/src/backend/sys/entities/exception.rs:41 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of wasmerio/wasmer@8c4b9ee9d3 (2026-09-01).
Data as JSON: /api/errors/de7f9cda7a8b2ccb.
Report an issue: GitHub.