Stream: git-wasmtime

Topic: wasmtime / PR #14667 wasi-http: restore p2 `http-error-co...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 12 2026 at 15:44):

rvolosatovs opened PR #14667 from rvolosatovs:fix/http-p2-error-code to bytecodealliance:main:

Since #13812 the p2 incoming body carries wasmtime_wasi_http::Error rather than ErrorCode, so the stream error handed to the guest wraps an Error and http-error-code downcasting it to ErrorCode always returned none.

Convert a wrapped Error through the p2 hooks instead. The error is borrowed from the resource table while the hooks take &mut self, so error_to_p2 now takes &Error and lives on dyn WasiHttpHooks. While here, also unwrap a nested Error in the hyper source chain as error_to_p3 already does.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 12 2026 at 15:44):

rvolosatovs requested dicej for a review on PR #14667.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 12 2026 at 15:44):

rvolosatovs requested wasmtime-wasi-reviewers for a review on PR #14667.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 12 2026 at 15:44):

rvolosatovs requested wasmtime-core-reviewers for a review on PR #14667.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 12 2026 at 16:03):

rvolosatovs has enabled auto merge for PR #14667.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 12 2026 at 18:35):

:thumbs_up: dicej submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 12 2026 at 18:35):

rvolosatovs added PR #14667 wasi-http: restore p2 http-error-code for body stream errors to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 12 2026 at 18:59):

:check: rvolosatovs merged PR #14667.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 12 2026 at 18:59):

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