rvolosatovs opened PR #14667 from rvolosatovs:fix/http-p2-error-code to bytecodealliance:main:
Since #13812 the p2 incoming body carries
wasmtime_wasi_http::Errorrather thanErrorCode, so the stream error handed to the guest wraps anErrorandhttp-error-codedowncasting it toErrorCodealways returnednone.Convert a wrapped
Errorthrough the p2 hooks instead. The error is borrowed from the resource table while the hooks take&mut self, soerror_to_p2now takes&Errorand lives ondyn WasiHttpHooks. While here, also unwrap a nestedErrorin the hyper source chain aserror_to_p3already does.
rvolosatovs requested dicej for a review on PR #14667.
rvolosatovs requested wasmtime-wasi-reviewers for a review on PR #14667.
rvolosatovs requested wasmtime-core-reviewers for a review on PR #14667.
rvolosatovs has enabled auto merge for PR #14667.
:thumbs_up: dicej submitted PR review.
rvolosatovs added PR #14667 wasi-http: restore p2 http-error-code for body stream errors to the merge queue.
:check: rvolosatovs merged PR #14667.
rvolosatovs removed PR #14667 wasi-http: restore p2 http-error-code for body stream errors from the merge queue.
Last updated: Oct 31 2026 at 23:03 UTC