dotnet-wasi-sdk
dotnet-wasi-sdk copied to clipboard
not yet implemented: preview1 sock_accept is not implemented
I followed the README instructions to create a simple web app but I'm getting the following error when running dotnet run
.
Building...
info: Microsoft.Hosting.Lifetime
Now listening on: http://localhost:5000
thread 'main' panicked at /home/runner/work/wasmtime/wasmtime/crates/wasi/src/preview2/preview1.rs:2302:9:
not yet implemented: preview1 sock_accept is not implemented
stack backtrace:
0: 0x560799361ddc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf84ab6ad0b91784c
1: 0x56079938f2ac - core::fmt::write::ha37c23b175e921b3
2: 0x56079935d93e - std::io::Write::write_fmt::haa1b000741bcbbe1
3: 0x560799361bc4 - std::sys_common::backtrace::print::hb982056c6f29541c
4: 0x5607993630b3 - std::panicking::default_hook::{{closure}}::h11f92f82c62fbd68
5: 0x560799362dd4 - std::panicking::default_hook::hb8810fe276772c66
6: 0x560799363635 - std::panicking::rust_panic_with_hook::hd2f0efd2fec86cb0
7: 0x5607993634e6 - std::panicking::begin_panic_handler::{{closure}}::h3651b7fc4f61d784
8: 0x560799362306 - std::sys_common::backtrace::__rust_end_short_backtrace::hbc468e4b98c7ae04
9: 0x560799363282 - rust_begin_unwind
10: 0x56079828f215 - core::panicking::panic_fmt::h979245e2fdb2fabd
11: 0x560798524fe8 - wasmtime_wasi::preview2::preview1::<impl wasmtime_wasi::preview2::preview1::wasi_snapshot_preview1::WasiSnapshotPreview1 for T>::sock_accept::h5e1b49fb22fc1447
here's my csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>
<WasiRunnerArgs>--tcplisten localhost:8080 --env ASPNETCORE_URLS=http://localhost:8080</WasiRunnerArgs>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Wasi.AspNetCore.Server.Native" Version="0.1.2-preview.10061" />
<PackageReference Include="Wasi.Sdk" Version="0.1.4-preview.10020" />
</ItemGroup>
</Project>
and here's my Program.cs
internal class Program
{
private static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args).UseWasiConnectionListener();
var app = builder.Build();
app.MapGet("/", () => "Hello World!");
app.Run();
}
}
What am I missing? Thanks