bytecodealliance / bytecodealliance/wasm-tools

wasi-virt throws error in wasm-compose (redirected from wasi-virt to Wasm-tools)

Open
#1,565 8 comments 0 reactions 0 assignees View on GitHub
wasm-compose
Dominant language
Rust
Stars
1.8k
Forks
351
Avg merge
16h 57m
Merged PRs (30d)
38

Description

Hi,

I'm trying to use wasi-virt with a micro service that I have written in rust. I want to give it a pre-opened file directory so that I can read a json file.
I am using this command: `wasi-virt --debug --stderr=allow composed-cinema.wasm --preopen microservices/cinema-1/users=/data --allow-http -o virt-cinema.wasm`
And I get the following error:
![image](https://github.com/bytecodealliance/wasm-tools/assets/54014218/899c4a1c-9ba8-42ca-9730-7c27de21dfef)

It seems to be an error in wasm-compose. For some additional context, the micro service was composed by using the http@3.0 draft from [here](https://github.com/dicej/isyswasfa).

I initially posted this in `wasi-virt` but was redirected here as it was an issue stemming from `wasm-tools`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.