Stream: wasi-cloud

Topic: Runtime panic building a component utilizing `wasi-http`


view this post on Zulip Roman Volosatovs (Mar 30 2023 at 11:57):

Hi, not sure where is the right place for this, but I am currently unable to build a component utilizingwasi-http with latest released versions of tooling - wit-component panics during encoding step. Latest git refs do not help from what I can see.

I have opened an issue here https://github.com/bytecodealliance/wasm-tools/issues/967
And I have a reproducer repo here https://github.com/rvolosatovs/wasi-http-guest-repo

Does anyone have an idea about what could be going on and possible fixes? (happy to attempt to fix, but not sure where to start yet)

I have added test cases to both wit-bindgen and wit-component with this component and both test cases pass just fine. So far, it does not seem that wit-component is actually the culprit

WebAssembly components currently cannot utilize https://github.com/WebAssembly/wasi-http on commit 53e2d258ae3008d254bda79ec958355ded8751a9 with: wit-bingen 0.4.0 wit-component 0.7.4 wasi_snapshot_...
Contribute to rvolosatovs/wasi-http-guest-repo development by creating an account on GitHub.

view this post on Zulip Roman Volosatovs (Mar 30 2023 at 14:08):

Filed a PR with a (temporary) fix https://github.com/WebAssembly/wasi-http/pull/21

Unfortunately, naming the interface dependency streams causes a clash with wasi_snapshot_preview1.wasm streams causing a runtime panic in wit-component. While the fix for this issue clearly belongs...

view this post on Zulip Mossaka (Joe) (Mar 30 2023 at 18:33):

Hey thank you for raising the issues! @Luke Wagner could you please take a look?

view this post on Zulip Eduardo Rodrigues (Mar 31 2023 at 20:21):

Based on Pat’s comments here (https://github.com/bytecodealliance/wasmtime/pull/5929#issuecomment-1492230954), we have to wait for the preview1-adapter to get added to the Wasmtime. Basically, we get errors like @Roman Volosatovs reported when mixing both component and module based linkers.

Initial draft, working, but with limitations. Known issues: Outbound requests only, inbound HTTP serving is not supported Body for requests is not supported Request options (e.g. timeout values) a...

Last updated: Nov 22 2024 at 16:03 UTC